1
0
Fork 0

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

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