diff options
author | Chocobozzz <me@florianbigard.com> | 2021-12-01 12:33:46 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-12-01 12:33:46 +0100 |
commit | 1da843eeac58ccad4fd5bc68606551004d7dbb7a (patch) | |
tree | bd2fc5efc08fb522f9f5f330a4e7abda2daae480 /server/lib | |
parent | 7e587ea46d0be7e0465bcaf1db5d0087fab982ff (diff) | |
download | PeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.tar.gz PeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.tar.zst PeerTube-1da843eeac58ccad4fd5bc68606551004d7dbb7a.zip |
Don't notify when transcoding ends on manual run
Diffstat (limited to 'server/lib')
-rw-r--r-- | server/lib/video-state.ts | 4 |
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) |