Skip to content

Commit ccb00a0

Browse files
committed
Checksum: fixed pyload#262
(cherry picked from commit 8cdb023)
1 parent a6e047b commit ccb00a0

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

pyload/plugins/addons/Checksum.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ def computeChecksum(local_file, algorithm):
5454

5555
class Checksum(Hook):
5656
__name__ = "Checksum"
57-
__version__ = "0.07"
57+
__version__ = "0.08"
5858
__description__ = "Verify downloaded file size and checksum (enable in general preferences)"
5959
__config__ = [("activated", "bool", "Activated", True),
6060
("action", "fail;retry;nothing", "What to do if check fails?", "retry"),
@@ -121,7 +121,7 @@ def downloadFinished(self, pyfile):
121121
if key in data:
122122
checksum = computeChecksum(local_file, key.replace("-", "").lower())
123123
if checksum:
124-
if checksum == data[key]:
124+
if checksum == data[key].lower():
125125
self.logInfo('File integrity of "%s" verified by %s checksum (%s).' % (pyfile.name,
126126
key.upper(),
127127
checksum))

0 commit comments

Comments
 (0)