diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-20 13:29:11 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2010-10-20 13:29:11 +0200 |
commit | 049247095e73ec5cee354aa7256a78ac9004becf (patch) | |
tree | 0f83252550a5e94b70db9ac9a8202b7cc420a721 /module/plugins/Plugin.py | |
parent | closed #159 (diff) | |
download | pyload-049247095e73ec5cee354aa7256a78ac9004becf.tar.xz |
closed #158
Diffstat (limited to 'module/plugins/Plugin.py')
-rw-r--r-- | module/plugins/Plugin.py | 7 |
1 files changed, 5 insertions, 2 deletions
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 |