summaryrefslogtreecommitdiffstats
path: root/module/plugins/internal/MultiHook.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 19:50:54 +0100
committerGravatar Walter Purcaro <vuolter@gmail.com> 2015-01-10 19:50:54 +0100
commit398a0dd02df28b6bbdb8c7f950db3131e77d8183 (patch)
tree1455a68eca8f1a4cfd248c9b489967e23f47ec48 /module/plugins/internal/MultiHook.py
parent[ZeveraCom] Improve (diff)
downloadpyload-398a0dd02df28b6bbdb8c7f950db3131e77d8183.tar.xz
[MultiHook] Fix downloadFailed routine
Diffstat (limited to 'module/plugins/internal/MultiHook.py')
-rw-r--r--module/plugins/internal/MultiHook.py9
1 files changed, 7 insertions, 2 deletions
diff --git a/module/plugins/internal/MultiHook.py b/module/plugins/internal/MultiHook.py
index 4408ebf0e..ac53c0c9c 100644
--- a/module/plugins/internal/MultiHook.py
+++ b/module/plugins/internal/MultiHook.py
@@ -9,7 +9,7 @@ from module.utils import decode, remove_chars
class MultiHook(Hook):
__name__ = "MultiHook"
__type__ = "hook"
- __version__ = "0.33"
+ __version__ = "0.34"
__config__ = [("pluginmode" , "all;listed;unlisted", "Use for plugins" , "all"),
("pluginlist" , "str" , "Plugin list (comma separated)" , "" ),
@@ -285,4 +285,9 @@ class MultiHook(Hook):
else:
retries = max(self.getConfig("retry", 10), 0)
wait_time = max(self.getConfig("retryinterval", 1), 0)
- pyfile.plugin.retry(retries, wait_time, "MultiHook")
+
+ if 0 < retries > pyfile.plugin.retries:
+ pyfile.plugin.retries += 1
+ pyfile.plugin.setCustomStatus("MultiHook", "queued")
+ pyfile.plugin.setWait(wait_time)
+ pyfile.plugin.wait()