aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2021-12-01 12:33:46 +0100
committerChocobozzz <me@florianbigard.com>2021-12-01 12:33:46 +0100
commit1da843eeac58ccad4fd5bc68606551004d7dbb7a (patch)
treebd2fc5efc08fb522f9f5f330a4e7abda2daae480 /server
parent7e587ea46d0be7e0465bcaf1db5d0087fab982ff (diff)
downloadPeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.tar.gz
PeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.tar.zst
PeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.zip
Don't notify when transcoding ends on manual run
Diffstat (limited to 'server')
-rw-r--r--server/lib/video-state.ts4
1 files changed, 3 insertions, 1 deletions
diff --git a/server/lib/video-state.ts b/server/lib/video-state.ts
index bf6dd4bc8..e420991cd 100644
--- a/server/lib/video-state.ts
+++ b/server/lib/video-state.ts
@@ -106,7 +106,9 @@ async function moveToPublishedState (video: MVideoFullLight, isNewVideo: boolean
106 // Live videos are always federated, so it's not a new video 106 // Live videos are always federated, so it's not a new video
107 await federateVideoIfNeeded(video, isNewVideo, transaction) 107 await federateVideoIfNeeded(video, isNewVideo, transaction)
108 108
109 if (isNewVideo) Notifier.Instance.notifyOnNewVideoIfNeeded(video) 109 if (!isNewVideo) return
110
111 Notifier.Instance.notifyOnNewVideoIfNeeded(video)
110 112
111 if (previousState === VideoState.TO_TRANSCODE) { 113 if (previousState === VideoState.TO_TRANSCODE) {
112 Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video) 114 Notifier.Instance.notifyOnVideoPublishedAfterTranscoding(video)