diff options
author | 2015-08-11 11:57:14 +0200 | |
---|---|---|
committer | 2015-08-11 11:57:14 +0200 | |
commit | 60621084b2df088a5c1ac89a4380db081ee72191 (patch) | |
tree | f0cde6344e30482d6e7046cec6f6895875f6d1aa | |
parent | Fix https://github.com/pyload/pyload/issues/1707 (diff) | |
download | pyload-60621084b2df088a5c1ac89a4380db081ee72191.tar.xz |
Fix error introduced by function rename
Replace all computeChecksum with compute_checksum. Error was introduced by the recent function name changes without refactoring the source correctly.
-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 6ecbfcda2..80d93dc39 100644 --- a/module/plugins/hooks/Checksum.py +++ b/module/plugins/hooks/Checksum.py @@ -131,7 +131,7 @@ class Checksum(Addon): for key in self.algorithms: if key in data: - checksum = computeChecksum(local_file, key.replace("-", "").lower()) + checksum = compute_checksum(local_file, key.replace("-", "").lower()) if checksum: if checksum is data[key].lower(): self.log_info(_('File integrity of "%s" verified by %s checksum (%s)') % @@ -186,7 +186,7 @@ class Checksum(Addon): local_file = fs_encode(fs_join(download_folder, data['NAME'])) algorithm = self.methods.get(file_type, file_type) - checksum = computeChecksum(local_file, algorithm) + checksum = compute_checksum(local_file, algorithm) if checksum is data['HASH']: self.log_info(_('File integrity of "%s" verified by %s checksum (%s)') % (data['NAME'], algorithm, checksum)) |