refactor(youtubedl): raise exception if no entries

This commit is contained in:
Ryan 2025-02-03 16:26:23 -05:00
parent 1a24754549
commit a1d63f1bb1
Signed by: ErrorNoInternet
GPG Key ID: 2486BFB7B1E6A4A3

View File

@ -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(