diff options
author | Chocobozzz <me@florianbigard.com> | 2018-05-30 10:49:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-05-30 10:49:56 +0200 |
commit | 0c948c1659c0a6010f2bf58c402b1c9af192aa5e (patch) | |
tree | 9e82656fc81af435f8d6c139b3decac409fa6aeb /server/controllers/api/videos/index.ts | |
parent | b4f8277cb6503bd889654f0e4f364627e9e00af9 (diff) | |
download | PeerTube-0c948c1659c0a6010f2bf58c402b1c9af192aa5e.tar.gz PeerTube-0c948c1659c0a6010f2bf58c402b1c9af192aa5e.tar.zst PeerTube-0c948c1659c0a6010f2bf58c402b1c9af192aa5e.zip |
Add ability to manually run transcoding job
Diffstat (limited to 'server/controllers/api/videos/index.ts')
-rw-r--r-- | server/controllers/api/videos/index.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/server/controllers/api/videos/index.ts b/server/controllers/api/videos/index.ts index 05fd79e67..7f5e74626 100644 --- a/server/controllers/api/videos/index.ts +++ b/server/controllers/api/videos/index.ts | |||
@@ -267,7 +267,8 @@ async function addVideo (req: express.Request, res: express.Response, videoPhysi | |||
267 | if (CONFIG.TRANSCODING.ENABLED === true) { | 267 | if (CONFIG.TRANSCODING.ENABLED === true) { |
268 | // Put uuid because we don't have id auto incremented for now | 268 | // Put uuid because we don't have id auto incremented for now |
269 | const dataInput = { | 269 | const dataInput = { |
270 | videoUUID: videoCreated.uuid | 270 | videoUUID: videoCreated.uuid, |
271 | isNewVideo: true | ||
271 | } | 272 | } |
272 | 273 | ||
273 | await JobQueue.Instance.createJob({ type: 'video-file', payload: dataInput }) | 274 | await JobQueue.Instance.createJob({ type: 'video-file', payload: dataInput }) |