]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - scripts/optimize-old-videos.ts
Minor update to the OpenAPI: instance config recent additions
[github/Chocobozzz/PeerTube.git] / scripts / optimize-old-videos.ts
index 107483c509bee43f272b88a43f425efdafefda4d..a84845068f5f24520b6d46c73e6f422a8871f5a5 100644 (file)
@@ -1,4 +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'
@@ -10,8 +12,6 @@ import { copy, move, remove } from 'fs-extra'
 import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent'
 import { getVideoFilePath } from '@server/lib/video-paths'
 
-registerTSPaths()
-
 run()
   .then(() => process.exit(0))
   .catch(err => {