youtube: add support for /live/ URLs
This commit is contained in:
parent
132d6a19ca
commit
f80c89ba09
@ -53,7 +53,7 @@ class YouTube(Plugin):
|
|||||||
views=views,
|
views=views,
|
||||||
date=date.strftime('%d.%m.%Y %H:%M:%S UTC'))
|
date=date.strftime('%d.%m.%Y %H:%M:%S UTC'))
|
||||||
|
|
||||||
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(?:youtube.*?(?:v=|/v/)'
|
@irc3.event(r'(?i)^:\S+ PRIVMSG (?P<target>\S+) :.*(?:youtube.*?(?:v=|/v/|/live/)'
|
||||||
r'|youtu\.be/)(?P<video_id>[-_a-zA-Z0-9]+).*')
|
r'|youtu\.be/)(?P<video_id>[-_a-zA-Z0-9]+).*')
|
||||||
def youtube_parser(self, target: str, video_id: str):
|
def youtube_parser(self, target: str, video_id: str):
|
||||||
data = self.get_video_data(video_id)
|
data = self.get_video_data(video_id)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user