1
0
Fork 0

Don't notify when transcoding ends on manual run

This commit is contained in:
Chocobozzz 2021-12-01 12:33:46 +01:00
parent 7e587ea46d
commit 1da843eeac
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -106,7 +106,9 @@ async function moveToPublishedState (video: MVideoFullLight, isNewVideo: boolean
// Live videos are always federated, so it's not a new video
await federateVideoIfNeeded(video, isNewVideo, transaction)
if (isNewVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(video)
if (!isNewVideo) return
Notifier.Instance.notifyOnNewVideoIfNeeded(video)
if (previousState === VideoState.TO_TRANSCODE) {
Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video)