Prevent weird error on sync failure
This commit is contained in:
parent
2873a53efd
commit
6c38f40d96
|
@ -59,6 +59,8 @@ class YoutubeDLWrapper {
|
||||||
processOptions
|
processOptions
|
||||||
})
|
})
|
||||||
|
|
||||||
|
if (!Array.isArray(list)) throw new Error(`YoutubeDL could not get list info from ${this.url}`)
|
||||||
|
|
||||||
return list.map(info => {
|
return list.map(info => {
|
||||||
const infoBuilder = new YoutubeDLInfoBuilder(info)
|
const infoBuilder = new YoutubeDLInfoBuilder(info)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue