diff options
author | Vuolter <vuolter@gmail.com> | 2013-05-15 16:46:30 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2013-05-25 09:29:29 +0200 |
commit | 35f0f402b60f18e2c32580151667cfc59bd8663f (patch) | |
tree | f59e112114730eb2363caaf65fc4cd33820e21dd | |
parent | Added plugin SkipRev (diff) | |
download | pyload-35f0f402b60f18e2c32580151667cfc59bd8663f.tar.xz |
Version 0.02: log actions
-rw-r--r-- | module/plugins/hooks/SkipRev.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/plugins/hooks/SkipRev.py b/module/plugins/hooks/SkipRev.py index 39cf8e548..0ac8de412 100644 --- a/module/plugins/hooks/SkipRev.py +++ b/module/plugins/hooks/SkipRev.py @@ -22,7 +22,7 @@ from module.plugins.Hook import Hook class SkipRev(Hook): __name__ = "SkipRev" - __version__ = "0.01" + __version__ = "0.02" __description__ = "Skip download when filename has rev extension" __config__ = [ ("activated", "bool", "Activated", "False"), @@ -32,10 +32,12 @@ class SkipRev(Hook): __author_mail__ = ("vuolter@gmail.com") def downloadPreparing(self, pyfile): + # self.logDebug("self.downloadPreparing") name = basename(pyfile.name) number = self.getConfig("number") if name.find(".rev") != -1: for i in range(1, number): if name.find(i + ".rev") != -1: return + self.logInfo("Skipping " + name) pyfile.setStatus("skipped") |