From 907ba7e270b78507a8d9b6aa20da0f6231c37d25 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Mar 2022 17:00:53 +0100 Subject: [PATCH] Fix live update error --- server/controllers/api/videos/update.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/server/controllers/api/videos/update.ts b/server/controllers/api/videos/update.ts index f600847d4..c01d9276a 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts @@ -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))