aboutsummaryrefslogtreecommitdiffhomepage
path: root/server
diff options
context:
space:
mode:
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 }