aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-16 11:03:42 +0100
committerChocobozzz <me@florianbigard.com>2018-02-16 11:03:42 +0100
commit63ce5a54f24ec0d184f321e9f46dcda7c0d19325 (patch)
tree649993ef555f9c51696cbc2aa590ceff7182664f /server
parent5f26c73521c50309a7041ecb81c6aa4fc3281f39 (diff)
downloadPeerTube-63ce5a54f24ec0d184f321e9f46dcda7c0d19325.tar.gz
PeerTube-63ce5a54f24ec0d184f321e9f46dcda7c0d19325.tar.zst
PeerTube-63ce5a54f24ec0d184f321e9f46dcda7c0d19325.zip
Fix duplicates detection
Diffstat (limited to 'server')
-rw-r--r--server/tools/import-youtube.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/server/tools/import-youtube.ts b/server/tools/import-youtube.ts
index 82f48d8f7..68893306f 100644
--- a/server/tools/import-youtube.ts
+++ b/server/tools/import-youtube.ts
@@ -76,7 +76,7 @@ function processVideo (video: { name: string, url: string }, languageCode: numbe
76 76
77 console.log('############################################################\n') 77 console.log('############################################################\n')
78 78
79 if (result.body.total !== 0) { 79 if (result.body.data.find(v => v.name === video.name)) {
80 console.log('Video "%s" already exists, don\'t reupload it.\n', video.name) 80 console.log('Video "%s" already exists, don\'t reupload it.\n', video.name)
81 return res() 81 return res()
82 } 82 }