aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/initializers
diff options
context:
space:
mode:
Diffstat (limited to 'server/initializers')
-rw-r--r--server/initializers/migrations/0075-video-resolutions.ts4
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
4import { readdirPromise, renamePromise } from '../../helpers/core-utils' 4import { readdirPromise, renamePromise } from '../../helpers/core-utils'
5import { CONFIG } from '../../initializers/constants' 5import { CONFIG } from '../../initializers/constants'
6import { getVideoFileHeight } from '../../helpers/ffmpeg-utils' 6import { getVideoFileResolution } from '../../helpers/ffmpeg-utils'
7 7
8function up (utils: { 8function 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'