Fix transcoding job with resolution
This commit is contained in:
parent
d91b23b11c
commit
8aad7ae413
|
@ -55,7 +55,7 @@ async function run () {
|
||||||
// Generate HLS files
|
// Generate HLS files
|
||||||
if (options.generateHls || CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) {
|
if (options.generateHls || CONFIG.TRANSCODING.WEBTORRENT.ENABLED === false) {
|
||||||
const resolutionsEnabled = options.resolution
|
const resolutionsEnabled = options.resolution
|
||||||
? [ options.resolution ]
|
? [ parseInt(options.resolution) ]
|
||||||
: computeResolutionsToTranscode(resolution, 'vod').concat([ resolution ])
|
: computeResolutionsToTranscode(resolution, 'vod').concat([ resolution ])
|
||||||
|
|
||||||
for (const resolution of resolutionsEnabled) {
|
for (const resolution of resolutionsEnabled) {
|
||||||
|
@ -75,7 +75,7 @@ async function run () {
|
||||||
type: 'new-resolution-to-webtorrent',
|
type: 'new-resolution-to-webtorrent',
|
||||||
videoUUID: video.uuid,
|
videoUUID: video.uuid,
|
||||||
isNewVideo: false,
|
isNewVideo: false,
|
||||||
resolution: options.resolution
|
resolution: parseInt(options.resolution)
|
||||||
})
|
})
|
||||||
} else {
|
} else {
|
||||||
if (video.VideoFiles.length === 0) {
|
if (video.VideoFiles.length === 0) {
|
||||||
|
|
Loading…
Reference in New Issue