diff --git a/youtubedl.py b/youtubedl.py index 5cdd8af..001e2d3 100644 --- a/youtubedl.py +++ b/youtubedl.py @@ -88,6 +88,8 @@ class YTDLSource(PCMVolumeTransformer): ) if "entries" in data: + if not data["entries"]: + raise Exception("no entries provided by yt-dlp!") data = data["entries"][0] return cls(