1
0
Fork 0

More robust live ending on invalid thumbnails

This commit is contained in:
Chocobozzz 2024-10-07 08:19:34 +02:00
parent bf11895507
commit ef8e5cad58
No known key found for this signature in database
GPG key ID: 583A612D890159BE

View file

@ -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 video
await moveToNextState({ video: videoWithFiles, isNewVideo: true })