summaryrefslogtreecommitdiffstats
path: root/module
diff options
context:
space:
mode:
authorGravatar GamaC0de <nitzo2001@yahoo.com> 2016-04-26 12:55:11 +0200
committerGravatar GamaC0de <nitzo2001@yahoo.com> 2016-04-26 12:55:11 +0200
commitf6cd7f90d2874a45117437f1725b111bebd89060 (patch)
treebd470dc96b4ace83fb34f93c225ec3b1377e1ebd /module
parentMerge pull request #2437 from OndrejIT/stable (diff)
downloadpyload-f6cd7f90d2874a45117437f1725b111bebd89060.tar.xz
[Checksum] Fix 'retry' behaviour
Diffstat (limited to 'module')
-rw-r--r--module/plugins/hooks/Checksum.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/Checksum.py b/module/plugins/hooks/Checksum.py
index cb4452c68..14fca4634 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.27"
+ __version__ = "0.28"
__status__ = "broken"
__config__ = [("activated" , "bool" , "Activated" , False ),
@@ -153,7 +153,7 @@ class Checksum(Addon):
if check_action == "retry":
max_tries = self.config.get('max_tries')
retry_action = self.config.get('retry_action')
- if pyfile.plugin.retries < max_tries:
+ if all(_r < max_tries for _id, _r in pyfile.plugin.retries.items()):
if local_file:
os.remove(local_file)
pyfile.plugin.retry(max_tries, self.config.get('wait_time'), msg)