also catch m.youtube.com urls
This commit is contained in:
parent
fa97f12689
commit
6d29291f47
1 changed files with 1 additions and 1 deletions
|
@ -5,7 +5,7 @@
|
|||
import re, urllib.parse
|
||||
from src import EventManager, ModuleManager, utils
|
||||
|
||||
REGEX_YOUTUBE = re.compile("https?://(?:www.)?(?:youtu.be/|youtube.com/)\\S+", re.I)
|
||||
REGEX_YOUTUBE = re.compile("https?://(?:www\.|m\.)?(?:youtu.be/|youtube.com/)\\S+", re.I)
|
||||
REGEX_ISO8601 = re.compile("PT(\d+H)?(\d+M)?(\d+S)?", re.I)
|
||||
|
||||
URL_YOUTUBESEARCH = "https://www.googleapis.com/youtube/v3/search"
|
||||
|
|
Loading…
Reference in a new issue