From a1d63f1bb1ffd58ad90ce5372cdb9f73b650c9aa Mon Sep 17 00:00:00 2001 From: ErrorNoInternet Date: Mon, 3 Feb 2025 16:26:23 -0500 Subject: [PATCH] refactor(youtubedl): raise exception if no entries --- youtubedl.py | 2 ++ 1 file changed, 2 insertions(+) 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(