mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2025-10-06 03:50:26 +02:00
Add video edition finished notification
This commit is contained in:
parent
348c2ce3ff
commit
1808a1f8e4
30 changed files with 336 additions and 70 deletions
|
@ -218,11 +218,11 @@ async function addVideo (options: {
|
|||
if (!refreshedVideo) return
|
||||
|
||||
if (refreshedVideo.state === VideoState.TO_MOVE_TO_EXTERNAL_STORAGE) {
|
||||
return addMoveToObjectStorageJob(refreshedVideo)
|
||||
return addMoveToObjectStorageJob({ video: refreshedVideo, previousVideoState: undefined })
|
||||
}
|
||||
|
||||
if (refreshedVideo.state === VideoState.TO_TRANSCODE) {
|
||||
return addOptimizeOrMergeAudioJob(refreshedVideo, videoFile, user)
|
||||
return addOptimizeOrMergeAudioJob({ video: refreshedVideo, videoFile, user })
|
||||
}
|
||||
}).catch(err => logger.error('Cannot add optimize/merge audio job for %s.', videoCreated.uuid, { err, ...lTags(videoCreated.uuid) }))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue