mirror of https://github.com/Chocobozzz/PeerTube
Prevent weird error on sync failure
parent
2873a53efd
commit
6c38f40d96
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in New Issue