youtube_parser: fix reading titles while sleeping

master
dece 2 years ago
parent bec9ff4d76
commit 6841b01e8d

1
.gitignore vendored

@ -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)

Loading…
Cancel
Save