youtube_parser: fix reading titles while sleeping
This commit is contained in:
parent
bec9ff4d76
commit
6841b01e8d
1
.gitignore
vendored
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…
Reference in a new issue