Fix duplicates detection

pull/298/head
Chocobozzz 2018-02-16 11:03:42 +01:00
parent 5f26c73521
commit 63ce5a54f2
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 1 additions and 1 deletions

View File

@ -76,7 +76,7 @@ function processVideo (video: { name: string, url: string }, languageCode: numbe
console.log('############################################################\n')
if (result.body.total !== 0) {
if (result.body.data.find(v => v.name === video.name)) {
console.log('Video "%s" already exists, don\'t reupload it.\n', video.name)
return res()
}