diff options
Diffstat (limited to 'server/initializers/migrations/0075-video-resolutions.ts')
-rw-r--r-- | server/initializers/migrations/0075-video-resolutions.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/server/initializers/migrations/0075-video-resolutions.ts b/server/initializers/migrations/0075-video-resolutions.ts index e7d8a2876..54ea852b1 100644 --- a/server/initializers/migrations/0075-video-resolutions.ts +++ b/server/initializers/migrations/0075-video-resolutions.ts | |||
@@ -3,7 +3,7 @@ import { join } from 'path' | |||
3 | 3 | ||
4 | import { readdirPromise, renamePromise } from '../../helpers/core-utils' | 4 | import { readdirPromise, renamePromise } from '../../helpers/core-utils' |
5 | import { CONFIG } from '../../initializers/constants' | 5 | import { CONFIG } from '../../initializers/constants' |
6 | import { getVideoFileHeight } from '../../helpers/ffmpeg-utils' | 6 | import { getVideoFileResolution } from '../../helpers/ffmpeg-utils' |
7 | 7 | ||
8 | function up (utils: { | 8 | function up (utils: { |
9 | transaction: Sequelize.Transaction, | 9 | transaction: Sequelize.Transaction, |
@@ -27,7 +27,7 @@ function up (utils: { | |||
27 | const uuid = matches[1] | 27 | const uuid = matches[1] |
28 | const ext = matches[2] | 28 | const ext = matches[2] |
29 | 29 | ||
30 | const p = getVideoFileHeight(join(videoFileDir, videoFile)) | 30 | const p = getVideoFileResolution(join(videoFileDir, videoFile)) |
31 | .then(height => { | 31 | .then(height => { |
32 | const oldTorrentName = uuid + '.torrent' | 32 | const oldTorrentName = uuid + '.torrent' |
33 | const newTorrentName = uuid + '-' + height + '.torrent' | 33 | const newTorrentName = uuid + '-' + height + '.torrent' |