aboutsummaryrefslogtreecommitdiffhomepage
path: root/server/lib/video.ts
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-11-18 14:35:08 +0100
committerChocobozzz <me@florianbigard.com>2021-11-18 15:20:57 +0100
commitad5db1044c8599eaaaa2a578b350777ae996b068 (patch)
tree3e003cccf021152405d49b21c6c91b703c8ae96c /server/lib/video.ts
parentb46cf4b920984492df598c1b61179acfc7f6f22e (diff)
downloadPeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.tar.gz
PeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.tar.zst
PeerTube-ad5db1044c8599eaaaa2a578b350777ae996b068.zip
Add ability to run transcoding jobs
Diffstat (limited to 'server/lib/video.ts')
-rw-r--r--server/lib/video.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/video.ts b/server/lib/video.ts
index 0a2b93cc0..1cfe4f27c 100644
--- a/server/lib/video.ts
+++ b/server/lib/video.ts
@@ -105,7 +105,7 @@ async function addOptimizeOrMergeAudioJob (video: MVideoUUID, videoFile: MVideoF
105 return addTranscodingJob(dataInput, jobOptions) 105 return addTranscodingJob(dataInput, jobOptions)
106} 106}
107 107
108async function addTranscodingJob (payload: VideoTranscodingPayload, options: CreateJobOptions) { 108async function addTranscodingJob (payload: VideoTranscodingPayload, options: CreateJobOptions = {}) {
109 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode') 109 await VideoJobInfoModel.increaseOrCreate(payload.videoUUID, 'pendingTranscode')
110 110
111 return JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload: payload }, options) 111 return JobQueue.Instance.createJobWithPromise({ type: 'video-transcoding', payload: payload }, options)