]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/optimize-old-videos.ts
Update translations
[github/Chocobozzz/PeerTube.git] / scripts / optimize-old-videos.ts
index 2c80f16bcf35e40384278b69d9f04d67e8a481b5..eb61ec43c4ae0255a8c7d172a8e9ceabf56573bb 100644 (file)
@@ -1,3 +1,6 @@
+import { registerTSPaths } from '../server/helpers/register-ts-paths'
+registerTSPaths()
+
 import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants'
 import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils'
 import { getMaxBitrate } from '../shared/models/videos'
@@ -61,7 +64,7 @@ async function run () {
         if (originalDuration === newDuration) {
           console.log('Finished optimizing %s', basename(currentFile))
           await remove(backupFile)
-          return
+          continue
         }
 
         console.log('Failed to optimize %s, restoring original', basename(currentFile))