Don't notify when transcoding ends on manual run
This commit is contained in:
parent
7e587ea46d
commit
1da843eeac
1 changed files with 3 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue