1
0
Fork 0

Prevent weird error on sync failure

This commit is contained in:
Chocobozzz 2022-08-18 14:58:27 +02:00
parent 2873a53efd
commit 6c38f40d96
No known key found for this signature in database
GPG Key ID: 583A612D890159BE
1 changed files with 2 additions and 0 deletions

View File

@ -59,6 +59,8 @@ class YoutubeDLWrapper {
processOptions
})
if (!Array.isArray(list)) throw new Error(`YoutubeDL could not get list info from ${this.url}`)
return list.map(info => {
const infoBuilder = new YoutubeDLInfoBuilder(info)