@ -4,3 +4,4 @@ resources/*
!resources/.gitkeep
venv/
.vim/
__pycache__/
@ -33,6 +33,8 @@ class YoutubeParserPlugin(Plugin):
self.is_ready = False
def on_pubmsg(self, event):
if not self.respects_handling_conditions():
return False
words = event.arguments[0].split()
for word in words:
match = self.VIDEO_URL_RE.match(word)