diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-24 09:34:06 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | 51326912d61b05a33dd9cf3ca9befa6e2715b346 (patch) | |
tree | be7d0abb6e4da038e47146cc8107980c51382fd8 /scripts/optimize-old-videos.ts | |
parent | 24163420dd43e3429976c8518d1752832ba910a4 (diff) | |
download | PeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.tar.gz PeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.tar.zst PeerTube-51326912d61b05a33dd9cf3ca9befa6e2715b346.zip |
Fix optimize old videos script
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 2c80f16bc..0b0e6037e 100644 --- a/scripts/optimize-old-videos.ts +++ b/scripts/optimize-old-videos.ts | |||
@@ -61,7 +61,7 @@ async function run () { | |||
61 | if (originalDuration === newDuration) { | 61 | if (originalDuration === newDuration) { |
62 | console.log('Finished optimizing %s', basename(currentFile)) | 62 | console.log('Finished optimizing %s', basename(currentFile)) |
63 | await remove(backupFile) | 63 | await remove(backupFile) |
64 | return | 64 | continue |
65 | } | 65 | } |
66 | 66 | ||
67 | console.log('Failed to optimize %s, restoring original', basename(currentFile)) | 67 | console.log('Failed to optimize %s, restoring original', basename(currentFile)) |