diff options
author | Stefano <l.stickell@yahoo.it> | 2013-09-18 00:25:18 +0200 |
---|---|---|
committer | Stefano <l.stickell@yahoo.it> | 2013-09-18 00:25:18 +0200 |
commit | 8cdb023dca7aba962e5c96d41f7fd6bfe47441b5 (patch) | |
tree | 0ea7d39ed008e750243046d4daeed66e4f03d5a7 /module/plugins/hooks/Checksum.py | |
parent | Merge pull request #218 from vuolter/s/plugin/coreconfig (diff) | |
download | pyload-8cdb023dca7aba962e5c96d41f7fd6bfe47441b5.tar.xz |
Checksum: fixed #262
Diffstat (limited to 'module/plugins/hooks/Checksum.py')
-rw-r--r-- | module/plugins/hooks/Checksum.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py index fa95d1065..08fd623b8 100644 --- a/module/plugins/hooks/Checksum.py +++ b/module/plugins/hooks/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)) |