diff options
author | Chocobozzz <me@florianbigard.com> | 2021-02-18 11:28:00 +0100 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2021-02-18 13:38:09 +0100 |
commit | 8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769 (patch) | |
tree | 863daf231cf4a66d9e5abf1cfe4fbe2b742cd856 /scripts/optimize-old-videos.ts | |
parent | f66db4d5c851fe87bb71cccee96926000f59a15b (diff) | |
download | PeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.tar.gz PeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.tar.zst PeerTube-8efc27bf14f1fe3ed23cd8a6d2de1f0918a7f769.zip |
Cleanup
Diffstat (limited to 'scripts/optimize-old-videos.ts')
-rw-r--r-- | scripts/optimize-old-videos.ts | 2 |
1 files changed, 1 insertions, 1 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 | } |