diff options
author | Chocobozzz <me@florianbigard.com> | 2018-02-27 15:57:28 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-02-27 15:57:43 +0100 |
commit | 056aa7f2b4de1ef128a5fd35527de6dd7a9ebad1 (patch) | |
tree | bf59c7f52be7da2d6bfd7ee18814b9c7f8463966 /server/initializers/migrations/0075-video-resolutions.ts | |
parent | 6fdc553adb23db216b44e425a85ea76bdf0a2a40 (diff) | |
download | PeerTube-056aa7f2b4de1ef128a5fd35527de6dd7a9ebad1.tar.gz PeerTube-056aa7f2b4de1ef128a5fd35527de6dd7a9ebad1.tar.zst PeerTube-056aa7f2b4de1ef128a5fd35527de6dd7a9ebad1.zip |
Fix resolution for portrait videos
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' |