diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/optimize-old-videos.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/optimize-old-videos.ts b/scripts/optimize-old-videos.ts index 107483c50..a84845068 100644 --- a/scripts/optimize-old-videos.ts +++ b/scripts/optimize-old-videos.ts | |||
@@ -1,4 +1,6 @@ | |||
1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' | 1 | import { registerTSPaths } from '../server/helpers/register-ts-paths' |
2 | registerTSPaths() | ||
3 | |||
2 | import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants' | 4 | import { VIDEO_TRANSCODING_FPS } from '../server/initializers/constants' |
3 | import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils' | 5 | import { getDurationFromVideoFile, getVideoFileBitrate, getVideoFileFPS, getVideoFileResolution } from '../server/helpers/ffmpeg-utils' |
4 | import { getMaxBitrate } from '../shared/models/videos' | 6 | import { getMaxBitrate } from '../shared/models/videos' |
@@ -10,8 +12,6 @@ import { copy, move, remove } from 'fs-extra' | |||
10 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' | 12 | import { createTorrentAndSetInfoHash } from '@server/helpers/webtorrent' |
11 | import { getVideoFilePath } from '@server/lib/video-paths' | 13 | import { getVideoFilePath } from '@server/lib/video-paths' |
12 | 14 | ||
13 | registerTSPaths() | ||
14 | |||
15 | run() | 15 | run() |
16 | .then(() => process.exit(0)) | 16 | .then(() => process.exit(0)) |
17 | .catch(err => { | 17 | .catch(err => { |