diff options
author | Chocobozzz <me@florianbigard.com> | 2019-11-21 12:16:27 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2019-11-25 10:59:44 +0100 |
commit | 66fb2aa39b6f8e4677f80128c27fbafd3a8fe2e7 (patch) | |
tree | 9d2f21e81cc42d8d51ac7ae35d91c30f143f0be0 /scripts/optimize-old-videos.ts | |
parent | d7a25329f9e607894d29ab342b9cb66638b56dc0 (diff) | |
download | PeerTube-66fb2aa39b6f8e4677f80128c27fbafd3a8fe2e7.tar.gz PeerTube-66fb2aa39b6f8e4677f80128c27fbafd3a8fe2e7.tar.zst PeerTube-66fb2aa39b6f8e4677f80128c27fbafd3a8fe2e7.zip |
Don't always replace actor avatar
Diffstat (limited to 'scripts/optimize-old-videos.ts')
-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 => { |