fix(youtubedl): handle error when no url
This commit is contained in:
parent
22249ecf7a
commit
4f7bd903b8
@ -46,6 +46,8 @@ class YTDLSource(PCMVolumeTransformer):
|
||||
if not data["entries"]:
|
||||
raise Exception("no results found!")
|
||||
data = data["entries"][0]
|
||||
if "url" not in data:
|
||||
raise Exception("no url returned!")
|
||||
|
||||
return cls(
|
||||
TrackedAudioSource(
|
||||
|
Loading…
x
Reference in New Issue
Block a user