aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-02-18 11:28:00 +0100
committerChocobozzz <chocobozzz@cpy.re>2021-02-18 13:38:09 +0100
commit8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769 (patch)
tree863daf231cf4a66d9e5abf1cfe4fbe2b742cd856 /scripts
parentf66db4d5c851fe87bb71cccee96926000f59a15b (diff)
downloadPeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.tar.gz
PeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.tar.zst
PeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.zip
Cleanup
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) {