mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-02-25 18:55:32 -06:00
Fix transcoding job with resolution
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user