aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rw-r--r--scripts/optimize-old-videos.ts2
-rwxr-xr-xscripts/update-host.ts2
2 files changed, 2 insertions, 2 deletions
diff --git a/scripts/optimize-old-videos.ts b/scripts/optimize-old-videos.ts
index 8e2e7fcf4..01d30244f 100644
--- a/scripts/optimize-old-videos.ts
+++ b/scripts/optimize-old-videos.ts
@@ -72,7 +72,7 @@ async function run () {
72 72
73 console.log('Failed to optimize %s, restoring original', basename(currentFile)) 73 console.log('Failed to optimize %s, restoring original', basename(currentFile))
74 await move(backupFile, currentFile, { overwrite: true }) 74 await move(backupFile, currentFile, { overwrite: true })
75 await createTorrentAndSetInfoHash(video, video, file) 75 await createTorrentAndSetInfoHash(video, file)
76 await file.save() 76 await file.save()
77 } 77 }
78 } 78 }
diff --git a/scripts/update-host.ts b/scripts/update-host.ts
index d0a1b03cc..e497be4e2 100755
--- a/scripts/update-host.ts
+++ b/scripts/update-host.ts
@@ -127,7 +127,7 @@ async function run () {
127 127
128 for (const file of video.VideoFiles) { 128 for (const file of video.VideoFiles) {
129 console.log('Updating torrent file %s of video %s.', file.resolution, video.uuid) 129 console.log('Updating torrent file %s of video %s.', file.resolution, video.uuid)
130 await createTorrentAndSetInfoHash(video, video, file) 130 await createTorrentAndSetInfoHash(video, file)
131 } 131 }
132 132
133 for (const playlist of video.VideoStreamingPlaylists) { 133 for (const playlist of video.VideoStreamingPlaylists) {