diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 23:08:59 +0200 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-07-28 23:08:59 +0200 |
commit | 2ec703256d3565e2b34c277dcee9fb80019f2f74 (patch) | |
tree | 35e1ae3d62c10b87861e59c2655360844b89f6a0 /module/plugins/hooks/Checksum.py | |
parent | Fix missing `encode` (diff) | |
download | pyload-2ec703256d3565e2b34c277dcee9fb80019f2f74.tar.xz |
Fix https://github.com/pyload/pyload/issues/1583
Diffstat (limited to 'module/plugins/hooks/Checksum.py')
-rw-r--r-- | module/plugins/hooks/Checksum.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py index 251918df5..6ecbfcda2 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.18" + __version__ = "0.19" __status__ = "testing" __config__ = [("check_checksum", "bool" , "Check checksum? (If False only size will be verified)", True ), @@ -99,10 +99,10 @@ class Checksum(Addon): self.log_debug(data) - if not pyfile.plugin.lastDownload: + if not pyfile.plugin.last_download: self.check_failed(pyfile, None, "No file downloaded") - local_file = fs_encode(pyfile.plugin.lastDownload) + local_file = fs_encode(pyfile.plugin.last_download) # download_folder = self.pyload.config.get("general", "download_folder") # local_file = fs_encode(fs_join(download_folder, pyfile.package().folder, pyfile.name)) |