summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/Checksum.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:39:07 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-03-18 13:39:07 +0100
commit2bc144adb6bc2759b635e09687b27bf96074827f (patch)
tree7f33ba4952b37c6c81425786f103524084975bd7 /module/plugins/hooks/Checksum.py
parent[UpdateManager] Dispatch Event on plugins update (diff)
downloadpyload-2bc144adb6bc2759b635e09687b27bf96074827f.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/Checksum.py')
-rw-r--r--module/plugins/hooks/Checksum.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index 9474f6968..42a4ca236 100644
--- a/module/plugins/hooks/Checksum.py
+++ b/module/plugins/hooks/Checksum.py
@@ -75,9 +75,12 @@ class Checksum(Hook):
def setup(self):
+ self.info = {} #@TODO: Remove in 0.4.10
self.algorithms = sorted(
getattr(hashlib, "algorithms", ("md5", "sha1", "sha224", "sha256", "sha384", "sha512")), reverse=True)
+
self.algorithms.extend(["crc32", "adler32"])
+
self.formats = self.algorithms + ["sfv", "crc", "hash"]