summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addons
diff options
context:
space:
mode:
authorGravatar Stefano <l.stickell@yahoo.it> 2013-09-18 00:25:18 +0200
committerGravatar Stefano <l.stickell@yahoo.it> 2013-09-24 19:46:24 +0200
commitccb00a083d048611128739f2fa59ca663bb3948e (patch)
treee6860f2de4ce240eb5f2bf2540ef16c526170994 /pyload/plugins/addons
parentMerge pull request #218 from vuolter/s/plugin/coreconfig (diff)
downloadpyload-ccb00a083d048611128739f2fa59ca663bb3948e.tar.xz
Checksum: fixed #262
(cherry picked from commit 8cdb023dca7aba962e5c96d41f7fd6bfe47441b5)
Diffstat (limited to 'pyload/plugins/addons')
-rw-r--r--pyload/plugins/addons/Checksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/pyload/plugins/addons/Checksum.py b/pyload/plugins/addons/Checksum.py
index fa95d1065..08fd623b8 100644
--- a/pyload/plugins/addons/Checksum.py
+++ b/pyload/plugins/addons/Checksum.py
@@ -54,7 +54,7 @@ def computeChecksum(local_file, algorithm):
class Checksum(Hook):
__name__ = "Checksum"
- __version__ = "0.07"
+ __version__ = "0.08"
__description__ = "Verify downloaded file size and checksum (enable in general preferences)"
__config__ = [("activated", "bool", "Activated", True),
("action", "fail;retry;nothing", "What to do if check fails?", "retry"),
@@ -121,7 +121,7 @@ class Checksum(Hook):
if key in data:
checksum = computeChecksum(local_file, key.replace("-", "").lower())
if checksum:
- if checksum == data[key]:
+ if checksum == data[key].lower():
self.logInfo('File integrity of "%s" verified by %s checksum (%s).' % (pyfile.name,
key.upper(),
checksum))