aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/helpers
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-01-21 15:58:17 +0100
committerChocobozzz <me@florianbigard.com>2021-01-21 15:58:17 +0100
commit24516aa26a6753517b379cf7b5104c1a24eccad6 (patch)
treea94b561faa63238f8ac69848f6b0379f0ade08a2 /server/helpers
parent3b01f4c0ac764ecb70efaadfd939ca868c28769c (diff)
downloadPeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.gz
PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.tar.zst
PeerTube-24516aa26a6753517b379cf7b5104c1a24eccad6.zip
Refactor transcoding job handlers
Diffstat (limited to 'server/helpers')
-rw-r--r--server/helpers/video.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/server/helpers/video.ts b/server/helpers/video.ts
index 5d1cd7de1..bfd5a9627 100644
--- a/server/helpers/video.ts
+++ b/server/helpers/video.ts
@@ -74,14 +74,14 @@ function addOptimizeOrMergeAudioJob (video: MVideo, videoFile: MVideoFile) {
74 74
75 if (videoFile.isAudio()) { 75 if (videoFile.isAudio()) {
76 dataInput = { 76 dataInput = {
77 type: 'merge-audio' as 'merge-audio', 77 type: 'merge-audio-to-webtorrent',
78 resolution: DEFAULT_AUDIO_RESOLUTION, 78 resolution: DEFAULT_AUDIO_RESOLUTION,
79 videoUUID: video.uuid, 79 videoUUID: video.uuid,
80 isNewVideo: true 80 isNewVideo: true
81 } 81 }
82 } else { 82 } else {
83 dataInput = { 83 dataInput = {
84 type: 'optimize' as 'optimize', 84 type: 'optimize-to-webtorrent',
85 videoUUID: video.uuid, 85 videoUUID: video.uuid,
86 isNewVideo: true 86 isNewVideo: true
87 } 87 }