Allow music.youtube.com urls
This commit is contained in:
parent
5b30919d86
commit
eafeb1a467
1 changed files with 1 additions and 1 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue