diff options
Diffstat (limited to 'server/helpers/youtube-dl/youtube-dl-wrapper.ts')
-rw-r--r-- | server/helpers/youtube-dl/youtube-dl-wrapper.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/server/helpers/youtube-dl/youtube-dl-wrapper.ts b/server/helpers/youtube-dl/youtube-dl-wrapper.ts index 7cd5e3310..3264cc9ff 100644 --- a/server/helpers/youtube-dl/youtube-dl-wrapper.ts +++ b/server/helpers/youtube-dl/youtube-dl-wrapper.ts | |||
@@ -39,6 +39,8 @@ class YoutubeDLWrapper { | |||
39 | processOptions | 39 | processOptions |
40 | }) | 40 | }) |
41 | 41 | ||
42 | if (!info) throw new Error(`YoutubeDL could not get info from ${this.url}`) | ||
43 | |||
42 | if (info.is_live === true) throw new Error('Cannot download a live streaming.') | 44 | if (info.is_live === true) throw new Error('Cannot download a live streaming.') |
43 | 45 | ||
44 | const infoBuilder = new YoutubeDLInfoBuilder(info) | 46 | const infoBuilder = new YoutubeDLInfoBuilder(info) |