diff options
author | Nitzo <nitzo2001@yahoo.com> | 2016-01-10 01:12:35 +0100 |
---|---|---|
committer | Nitzo <nitzo2001@yahoo.com> | 2016-01-10 01:12:35 +0100 |
commit | 275ecd47f14ebee8309de1e1f13d090ca50c38fe (patch) | |
tree | f9c22e6fc16f376fcc6f34df9f86af3a300fbabe /module/plugins/hooks/Checksum.py | |
parent | [ExternalScripts] Update (diff) | |
download | pyload-275ecd47f14ebee8309de1e1f13d090ca50c38fe.tar.xz |
"is" is evil (2)
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 af6f2f406..cdda86a27 100644 --- a/module/plugins/hooks/Checksum.py +++ b/module/plugins/hooks/Checksum.py @@ -38,7 +38,7 @@ def compute_checksum(local_file, algorithm): class Checksum(Addon): __name__ = "Checksum" __type__ = "hook" - __version__ = "0.24" + __version__ = "0.25" __status__ = "broken" __config__ = [("activated" , "bool" , "Activated" , False ), @@ -190,7 +190,7 @@ class Checksum(Addon): algorithm = self.methods.get(file_type, file_type) checksum = compute_checksum(local_file, algorithm) - if checksum is data['HASH']: + if checksum == data['HASH']: self.log_info(_('File integrity of "%s" verified by %s checksum (%s)') % (data['NAME'], algorithm, checksum)) else: |