mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2026-09-03 20:53:09 -05:00
Refactor transcoding job handlers
This commit is contained in:
@@ -47,7 +47,7 @@ async function run () {
|
||||
|
||||
for (const resolution of resolutionsEnabled) {
|
||||
dataInput.push({
|
||||
type: 'hls',
|
||||
type: 'new-resolution-to-hls',
|
||||
videoUUID: video.uuid,
|
||||
resolution,
|
||||
isPortraitMode: false,
|
||||
@@ -56,14 +56,14 @@ async function run () {
|
||||
}
|
||||
} else if (program.resolution !== undefined) {
|
||||
dataInput.push({
|
||||
type: 'new-resolution' as 'new-resolution',
|
||||
type: 'new-resolution-to-webtorrent',
|
||||
videoUUID: video.uuid,
|
||||
isNewVideo: false,
|
||||
resolution: program.resolution
|
||||
})
|
||||
} else {
|
||||
dataInput.push({
|
||||
type: 'optimize' as 'optimize',
|
||||
type: 'optimize-to-webtorrent',
|
||||
videoUUID: video.uuid,
|
||||
isNewVideo: false
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user