From 056aa7f2b4de1ef128a5fd35527de6dd7a9ebad1 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Tue, 27 Feb 2018 15:57:28 +0100 Subject: Fix resolution for portrait videos --- server/initializers/migrations/0075-video-resolutions.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'server/initializers/migrations/0075-video-resolutions.ts') 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' import { readdirPromise, renamePromise } from '../../helpers/core-utils' import { CONFIG } from '../../initializers/constants' -import { getVideoFileHeight } from '../../helpers/ffmpeg-utils' +import { getVideoFileResolution } from '../../helpers/ffmpeg-utils' function up (utils: { transaction: Sequelize.Transaction, @@ -27,7 +27,7 @@ function up (utils: { const uuid = matches[1] const ext = matches[2] - const p = getVideoFileHeight(join(videoFileDir, videoFile)) + const p = getVideoFileResolution(join(videoFileDir, videoFile)) .then(height => { const oldTorrentName = uuid + '.torrent' const newTorrentName = uuid + '-' + height + '.torrent' -- cgit v1.2.3