Merge pull request #284 from auscompgeek/patch-1
Handle music.youtube.com URLs
This commit is contained in:
commit
131e089697
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
import datetime, re, urllib.parse
|
||||
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_YOUTUBEVIDEO = "https://www.googleapis.com/youtube/v3/videos"
|
||||
|
|
Loading…
Reference in a new issue