From 24516aa26a6753517b379cf7b5104c1a24eccad6 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Thu, 21 Jan 2021 15:58:17 +0100 Subject: Refactor transcoding job handlers --- scripts/create-transcoding-job.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'scripts/create-transcoding-job.ts') diff --git a/scripts/create-transcoding-job.ts b/scripts/create-transcoding-job.ts index 2eed53f42..ca9e2a99a 100755 --- a/scripts/create-transcoding-job.ts +++ b/scripts/create-transcoding-job.ts @@ -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 }) -- cgit v1.2.3