Allow music.youtube.com urls

This commit is contained in:
Joscha 2018-09-05 18:35:21 +00:00
parent 5b30919d86
commit eafeb1a467

View file

@ -263,7 +263,7 @@ class ArgonDJBot(yaboli.Bot):
# Find the video id in a single argument # Find the video id in a single argument
VIDEO_ID_RE = r"[a-zA-Z0-9_-]{11}" VIDEO_ID_RE = r"[a-zA-Z0-9_-]{11}"
YOUTUBE_RE = r"((https?://)?(www\.)?(youtube\.com/(watch\?v=|embed/)|youtu\.be/))?(" + VIDEO_ID_RE + ")" YOUTUBE_RE = r"((https?://)?(www\.|music\.)?(youtube\.com/(watch\?v=|embed/)|youtu\.be/))?(" + VIDEO_ID_RE + ")"
YOUTUBE_RE_GROUP = 6 YOUTUBE_RE_GROUP = 6
DEL_RE = r"(\d+)" # Per argument DEL_RE = r"(\d+)" # Per argument