summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Checksum.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-09 01:13:05 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2014-12-09 01:13:05 +0100
commite4c9e4ffc9e3f6bd6b16ce83796dc3d275d544f7 (patch)
treeac66b8d581519a1db402b41567531d8e59be264d /module/plugins/hooks/Checksum.py
parent[SkipRev] Update (2) (diff)
downloadpyload-e4c9e4ffc9e3f6bd6b16ce83796dc3d275d544f7.tar.xz
Don't start unused periodical in some addons
Diffstat (limited to 'module/plugins/hooks/Checksum.py')
-rw-r--r--module/plugins/hooks/Checksum.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index eeda2d849..18036e020 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -40,7 +40,7 @@ def computeChecksum(local_file, algorithm):
class Checksum(Hook):
__name__ = "Checksum"
__type__ = "hook"
- __version__ = "0.14"
+ __version__ = "0.15"
__config__ = [("check_checksum", "bool", "Check checksum? (If False only size will be verified)", True),
("check_action", "fail;retry;nothing", "What to do if check fails?", "retry"),
@@ -62,6 +62,11 @@ class Checksum(Hook):
'default': r'^(?P<hash>[0-9A-Fa-f]+)\s+\*?(?P<name>.+)$'}
+ #@TODO: Remove in 0.4.10
+ def initPeriodical(self):
+ pass
+
+
def coreReady(self):
if not self.getConfig("check_checksum"):
self.logInfo(_("Checksum validation is disabled in plugin configuration"))