mirror of
https://github.com/Chocobozzz/PeerTube.git
synced 2024-12-01 12:59:15 -06:00
Prevent weird error on sync failure
This commit is contained in:
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
Block a user