Handle music.youtube.com URLs
This commit is contained in:
parent
ab2106ba5b
commit
5fb2fb8421
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
||||||
import datetime, re, urllib.parse
|
import datetime, re, urllib.parse
|
||||||
from src import EventManager, ModuleManager, utils
|
from src import EventManager, ModuleManager, utils
|
||||||
|
|
||||||
REGEX_YOUTUBE = re.compile("https?://(?:www\.|m\.)?(?:youtu.be/|youtube.com/)\\S+", re.I)
|
REGEX_YOUTUBE = re.compile("https?://(?:www\.|m\.|music\.)?(?:youtu.be/|youtube.com/)\\S+", re.I)
|
||||||
|
|
||||||
URL_YOUTUBESEARCH = "https://www.googleapis.com/youtube/v3/search"
|
URL_YOUTUBESEARCH = "https://www.googleapis.com/youtube/v3/search"
|
||||||
URL_YOUTUBEVIDEO = "https://www.googleapis.com/youtube/v3/videos"
|
URL_YOUTUBEVIDEO = "https://www.googleapis.com/youtube/v3/videos"
|
||||||
|
|
Loading…
Reference in a new issue