From d3670b8982a05eed4c86172fbb470458c38e5da5 Mon Sep 17 00:00:00 2001 From: Phxntxm Date: Sun, 23 Jul 2017 18:49:32 -0500 Subject: [PATCH] Use the correct URL --- cogs/voice_utilities/source.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cogs/voice_utilities/source.py b/cogs/voice_utilities/source.py index 3a5c84d..5e921a7 100644 --- a/cogs/voice_utilities/source.py +++ b/cogs/voice_utilities/source.py @@ -51,7 +51,7 @@ class YoutubeDLSource(discord.FFmpegPCMAudio): if content_type: if content_type.startswith(('application/', 'image/')): if '/ogg' not in content_type: # How does a server say `application/ogg` what the actual fuck - raise ExtractionError("Invalid content type \"%s\" for url %s" % (content_type, song_url)) + raise ExtractionError("Invalid content type \"%s\" for url %s" % (content_type, self.url)) if headers.get('ice-audio-info'): raise LiveStreamError("Cannot download from a livestream")