diff options
author | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-01-21 15:58:17 +0100 |
commit | 24516aa26a6753517b379cf7b5104c1a24eccad6 (patch) | |
tree | a94b561faa63238f8ac69848f6b0379f0ade08a2 /scripts | |
parent | 3b01f4c0ac764ecb70efaadfd939ca868c28769c (diff) | |
download | PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.gz PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.zst PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.zip |
Refactor transcoding job handlers
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/create-transcoding-job.ts | 6 |
1 files changed, 3 insertions, 3 deletions
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 () { | |||
47 | 47 | ||
48 | for (const resolution of resolutionsEnabled) { | 48 | for (const resolution of resolutionsEnabled) { |
49 | dataInput.push({ | 49 | dataInput.push({ |
50 | type: 'hls', | 50 | type: 'new-resolution-to-hls', |
51 | videoUUID: video.uuid, | 51 | videoUUID: video.uuid, |
52 | resolution, | 52 | resolution, |
53 | isPortraitMode: false, | 53 | isPortraitMode: false, |
@@ -56,14 +56,14 @@ async function run () { | |||
56 | } | 56 | } |
57 | } else if (program.resolution !== undefined) { | 57 | } else if (program.resolution !== undefined) { |
58 | dataInput.push({ | 58 | dataInput.push({ |
59 | type: 'new-resolution' as 'new-resolution', | 59 | type: 'new-resolution-to-webtorrent', |
60 | videoUUID: video.uuid, | 60 | videoUUID: video.uuid, |
61 | isNewVideo: false, | 61 | isNewVideo: false, |
62 | resolution: program.resolution | 62 | resolution: program.resolution |
63 | }) | 63 | }) |
64 | } else { | 64 | } else { |
65 | dataInput.push({ | 65 | dataInput.push({ |
66 | type: 'optimize' as 'optimize', | 66 | type: 'optimize-to-webtorrent', |
67 | videoUUID: video.uuid, | 67 | videoUUID: video.uuid, |
68 | isNewVideo: false | 68 | isNewVideo: false |
69 | }) | 69 | }) |