mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-06 03:08:55 -05:00
[Audio] Playlists mix support (#766)
This commit is contained in:
parent
5b885b82c4
commit
ad301d00e4
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user