refactor(youtubedl): raise exception if no entries
This commit is contained in:
parent
1a24754549
commit
a1d63f1bb1
@ -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(
|
||||
|
Loading…
x
Reference in New Issue
Block a user