1
0
Fork 0
mirror of synced 2024-06-09 22:24:32 +12:00

Use the correct URL

This commit is contained in:
Phxntxm 2017-07-23 18:49:32 -05:00
parent 8f98b4ea95
commit d3670b8982

View file

@ -51,7 +51,7 @@ class YoutubeDLSource(discord.FFmpegPCMAudio):
if content_type: if content_type:
if content_type.startswith(('application/', 'image/')): if content_type.startswith(('application/', 'image/')):
if '/ogg' not in content_type: # How does a server say `application/ogg` what the actual fuck 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'): if headers.get('ice-audio-info'):
raise LiveStreamError("Cannot download from a livestream") raise LiveStreamError("Cannot download from a livestream")