Don't notify when transcoding ends on manual run

pull/4597/head
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
1 changed files with 3 additions and 1 deletions

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)