aboutsummaryrefslogtreecommitdiffhomepage
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/create-transcoding-job.ts4
1 files changed, 2 insertions, 2 deletions
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 () {
55 // Generate HLS files 55 // Generate HLS files
56 if (options.generateHls || CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) { 56 if (options.generateHls || CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) {
57 const resolutionsEnabled = options.resolution 57 const resolutionsEnabled = options.resolution
58 ? [ options.resolution ] 58 ? [ parseInt(options.resolution) ]
59 : computeResolutionsToTranscode(resolution, 'vod').concat([ resolution ]) 59 : computeResolutionsToTranscode(resolution, 'vod').concat([ resolution ])
60 60
61 for (const resolution of resolutionsEnabled) { 61 for (const resolution of resolutionsEnabled) {
@@ -75,7 +75,7 @@ async function run () {
75 type: 'new-resolution-to-webtorrent', 75 type: 'new-resolution-to-webtorrent',
76 videoUUID: video.uuid, 76 videoUUID: video.uuid,
77 isNewVideo: false, 77 isNewVideo: false,
78 resolution: options.resolution 78 resolution: parseInt(options.resolution)
79 }) 79 })
80 } else { 80 } else {
81 if (video.VideoFiles.length === 0) { 81 if (video.VideoFiles.length === 0) {