aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2019-08-22 11:03:50 +0200
committerChocobozzz <me@florianbigard.com>2019-08-22 11:03:50 +0200
commit217ffacfdde0972a3ee4e2db152e1710139b4ec4 (patch)
tree4253b3cb05d67d04363f1c383ac461e3cc97554b /server
parentdea16773dfcc4e38e48c2980731af6e2a17a7aa6 (diff)
downloadPeerTube-217ffacfdde0972a3ee4e2db152e1710139b4ec4.tar.gz
PeerTube-217ffacfdde0972a3ee4e2db152e1710139b4ec4.tar.zst
PeerTube-217ffacfdde0972a3ee4e2db152e1710139b4ec4.zip
Try to fix video duplication
Diffstat (limited to 'server')
-rw-r--r--server/lib/schedulers/videos-redundancy-scheduler.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/lib/schedulers/videos-redundancy-scheduler.ts b/server/lib/schedulers/videos-redundancy-scheduler.ts
index 04f601bfb..cd70fd851 100644
--- a/server/lib/schedulers/videos-redundancy-scheduler.ts
+++ b/server/lib/schedulers/videos-redundancy-scheduler.ts
@@ -185,7 +185,7 @@ export class VideosRedundancyScheduler extends AbstractScheduler {
185 const tmpPath = await downloadWebTorrentVideo({ magnetUri }, VIDEO_IMPORT_TIMEOUT) 185 const tmpPath = await downloadWebTorrentVideo({ magnetUri }, VIDEO_IMPORT_TIMEOUT)
186 186
187 const destPath = join(CONFIG.STORAGE.REDUNDANCY_DIR, video.getVideoFilename(file)) 187 const destPath = join(CONFIG.STORAGE.REDUNDANCY_DIR, video.getVideoFilename(file))
188 await move(tmpPath, destPath) 188 await move(tmpPath, destPath, { overwrite: true })
189 189
190 const createdModel = await VideoRedundancyModel.create({ 190 const createdModel = await VideoRedundancyModel.create({
191 expiresOn: this.buildNewExpiration(redundancy.minLifetime), 191 expiresOn: this.buildNewExpiration(redundancy.minLifetime),