diff options
Diffstat (limited to 'server/controllers/api/videos/update.ts')
-rw-r--r-- | server/controllers/api/videos/update.ts | 4 |
1 files changed, 3 insertions, 1 deletions
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) { | |||
147 | return { videoInstanceUpdated, isNewVideo } | 147 | return { videoInstanceUpdated, isNewVideo } |
148 | }) | 148 | }) |
149 | 149 | ||
150 | if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) | 150 | if (videoInstanceUpdated.isLive !== true && videoInfoToUpdate.name) { |
151 | await updateTorrentsMetadata(videoInstanceUpdated) | ||
152 | } | ||
151 | 153 | ||
152 | await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) | 154 | await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) |
153 | 155 | ||