]> git.immae.eu Git - github/Chocobozzz/PeerTube.git/blobdiff - server/controllers/api/videos/update.ts
Merge branch 'release/4.1.0' into develop
[github/Chocobozzz/PeerTube.git] / server / controllers / api / videos / update.ts
index 8906003fc6a1ad573934e9f232ecd4ce37a801ed..15899307de27407f6f43e559da71747079e216c7 100644 (file)
@@ -139,7 +139,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))