diff --git a/server/helpers/youtube-dl/youtube-dl-wrapper.ts b/server/helpers/youtube-dl/youtube-dl-wrapper.ts index 3264cc9ff..2c3ba2feb 100644 --- a/server/helpers/youtube-dl/youtube-dl-wrapper.ts +++ b/server/helpers/youtube-dl/youtube-dl-wrapper.ts @@ -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)