Fix live update error

This commit is contained in:
Chocobozzz
2022-03-04 17:00:53 +01:00
parent 219e18c944
commit 907ba7e270

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))