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