From 049247095e73ec5cee354aa7256a78ac9004becf Mon Sep 17 00:00:00 2001 From: RaNaN Date: Wed, 20 Oct 2010 13:29:11 +0200 Subject: closed #158 --- module/plugins/Plugin.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'module/plugins/Plugin.py') diff --git a/module/plugins/Plugin.py b/module/plugins/Plugin.py index 267ce57d5..38076bf9c 100644 --- a/module/plugins/Plugin.py +++ b/module/plugins/Plugin.py @@ -107,6 +107,7 @@ class Plugin(object): self.thread = None # holds thread in future self.lastDownload = "" # location where the last call to download was saved + self.lastCheck = None #re match of last checked matched self.js = self.core.js # js engine #self.setup() @@ -354,9 +355,11 @@ class Plugin(object): if rule in content: if delete: remove(self.lastDownload) - return name + return name, name elif hasattr(rule, "match"): - if rule.match(content): + m = rule.match(content) + if m: if delete: remove(self.lastDownload) + self.lastCheck = m return name -- cgit v1.2.3