1
0
Fork 0
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:
Chocobozzz 2022-03-22 14:35:04 +01:00
parent 348c2ce3ff
commit 1808a1f8e4
No known key found for this signature in database
GPG key ID: 583A612D890159BE
30 changed files with 336 additions and 70 deletions

View file

@ -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) }))