Fix duplicates detection
This commit is contained in:
parent
5f26c73521
commit
63ce5a54f2
|
@ -76,7 +76,7 @@ function processVideo (video: { name: string, url: string }, languageCode: numbe
|
||||||
|
|
||||||
console.log('############################################################\n')
|
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)
|
console.log('Video "%s" already exists, don\'t reupload it.\n', video.name)
|
||||||
return res()
|
return res()
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue