ActivityPub-federated video streaming platform using P2P directly in your web browser
More robust live ending on invalid thumbnails
Chocobozzzef8e5cad585c
diff --git a/server/core/lib/job-queue/handlers/video-live-ending.ts b/server/core/lib/job-queue/handlers/video-live-ending.tsindex dba971649c..ad862799f4 100644--- a/server/core/lib/job-queue/handlers/video-live-ending.ts+++ b/server/core/lib/job-queue/handlers/video-live-ending.ts@@ -178,7 +178,14 @@ async function saveReplayToExternalVideo (options: {inputFileMutexReleaser()}- await copyOrRegenerateThumbnails({ liveVideo, replayVideo })+ try {+ await copyOrRegenerateThumbnails({ liveVideo, replayVideo })+ } catch (err) {+ logger.error(+ `Cannot copy/regenerate thumbnails of ended live ${liveVideo.uuid} to external video ${replayVideo.uuid}`,+ lTags(liveVideo.uuid, replayVideo.uuid)+ )+ }await createStoryboardJob(replayVideo)await createTranscriptionTaskIfNeeded(replayVideo)@@ -280,7 +287,11 @@ async function replaceLiveByReplay (options: {}// Regenerate the thumbnail & preview?- await regenerateMiniaturesIfNeeded(videoWithFiles, undefined)+ try {+ await regenerateMiniaturesIfNeeded(videoWithFiles, undefined)+ } catch (err) {+ logger.error(`Cannot regenerate thumbnails of ended live ${videoWithFiles.uuid}`, lTags(liveVideo.uuid))+ }// We consider this is a new videoawait moveToNextState({ video: videoWithFiles, isNewVideo: true })