From ad301d00e4e81d87059bd3620abd05b1c09a7f70 Mon Sep 17 00:00:00 2001 From: Will Date: Sat, 20 May 2017 09:41:59 -0400 Subject: [PATCH] [Audio] Playlists mix support (#766) --- cogs/audio.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/cogs/audio.py b/cogs/audio.py index 0e5b3fa66..3452d9e3d 100644 --- a/cogs/audio.py +++ b/cogs/audio.py @@ -45,7 +45,6 @@ youtube_dl_options = { 'extractaudio': True, 'audioformat': "mp3", 'outtmpl': '%(id)s', - 'noplaylist': True, 'nocheckcertificate': True, 'ignoreerrors': True, 'quiet': True, @@ -720,7 +719,7 @@ class Audio: return False yt_playlist = re.compile( r'^(https?\:\/\/)?(www\.)?(youtube\.com|youtu\.?be)' - r'(\/playlist\?).*(list=)(.*)(&|$)') + r'((\/playlist\?)|\/watch\?).*(list=)(.*)(&|$)') # Group 6 should be the list ID if yt_playlist.match(url): return True