From 8aad7ae413e58ae2ef847c5e12419c45f4ff55be Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 5 Nov 2021 14:17:19 +0100 Subject: Fix transcoding job with resolution --- scripts/create-transcoding-job.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'scripts/create-transcoding-job.ts') diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 30846cd15..fe3bd26de 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -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) { -- cgit v1.2.3