summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/SkipRev.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/SkipRev.py')
-rw-r--r--module/plugins/hooks/SkipRev.py4
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")