Fix transcoding job with resolution

pull/4529/head
Chocobozzz 2021-11-05 14:17:19 +01:00
parent d91b23b11c
commit 8aad7ae413
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 2 deletions

View File

@ -55,7 +55,7 @@ async function run () {
// Generate HLS files
if (options.generateHls || CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) {
const resolutionsEnabled = options.resolution
? [ options.resolution ]
? [ parseInt(options.resolution) ]
: computeResolutionsToTranscode(resolution, 'vod').concat([ resolution ])
for (const resolution of resolutionsEnabled) {
@ -75,7 +75,7 @@ async function run () {
type: 'new-resolution-to-webtorrent',
videoUUID: video.uuid,
isNewVideo: false,
resolution: options.resolution
resolution: parseInt(options.resolution)
})
} else {
if (video.VideoFiles.length === 0) {