diff --git a/audio/youtubedl.py b/audio/youtubedl.py index 44e471d..7342958 100644 --- a/audio/youtubedl.py +++ b/audio/youtubedl.py @@ -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(