diff options
author | Chocobozzz <me@florianbigard.com> | 2022-03-04 17:01:02 +0100 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-03-04 17:01:02 +0100 |
commit | ab4b8974997777373a6032073f9c1aaf33ba9931 (patch) | |
tree | ff427bf6e7f92f1b8f03945fcf6e184cc2e9c95f /server/controllers/api/videos | |
parent | 28dca0a2211524bbf3ad17666c607eb6325763b8 (diff) | |
parent | 907ba7e270b78507a8d9b6aa20da0f6231c37d25 (diff) | |
download | PeerTube-ab4b8974997777373a6032073f9c1aaf33ba9931.tar.gz PeerTube-ab4b8974997777373a6032073f9c1aaf33ba9931.tar.zst PeerTube-ab4b8974997777373a6032073f9c1aaf33ba9931.zip |
Merge branch 'release/4.1.0' into develop
Diffstat (limited to 'server/controllers/api/videos')
-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 8906003fc..15899307d 100644 --- a/server/controllers/api/videos/update.ts +++ b/server/controllers/api/videos/update.ts | |||
@@ -139,7 +139,9 @@ async function updateVideo (req: express.Request, res: express.Response) { | |||
139 | return { videoInstanceUpdated, isNewVideo } | 139 | return { videoInstanceUpdated, isNewVideo } |
140 | }) | 140 | }) |
141 | 141 | ||
142 | if (videoInfoToUpdate.name) await updateTorrentsMetadata(videoInstanceUpdated) | 142 | if (videoInstanceUpdated.isLive !== true && videoInfoToUpdate.name) { |
143 | await updateTorrentsMetadata(videoInstanceUpdated) | ||
144 | } | ||
143 | 145 | ||
144 | await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) | 146 | await sequelizeTypescript.transaction(t => federateVideoIfNeeded(videoInstanceUpdated, isNewVideo, t)) |
145 | 147 | ||