Fix live update error

This commit is contained in:
Chocobozzz 2022-03-04 17:00:53 +01:00
parent 219e18c944
commit 907ba7e270
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 3 additions and 1 deletions

View File

@ -147,7 +147,9 @@ async function updateVideo (req: express.Request, res: express.Response) {
return { videoInstanceUpdated, isNewVideo }
})
if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated)
if (videoInstanceUpdated.isLive !== true && videoInfoToUpdate.name) {
await updateTorrentsMetadata(videoInstanceUpdated)
}
await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t))