diff options
author | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-20 18:34:38 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@users.noreply.github.com> | 2015-12-27 22:45:29 +0100 |
commit | 99bb91e42275df3cf77f5300939908a4bf15af61 (patch) | |
tree | 56d1b1eee6fe70e513da2c66f9baf56b2ace8370 /module/plugins/hooks/RestartFailed.py | |
parent | [Addon] Import new Periodical class + code cosmetics (diff) | |
download | pyload-99bb91e42275df3cf77f5300939908a4bf15af61.tar.xz |
Update addons
Diffstat (limited to 'module/plugins/hooks/RestartFailed.py')
-rw-r--r-- | module/plugins/hooks/RestartFailed.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py index 2babff89d..62298ea14 100644 --- a/module/plugins/hooks/RestartFailed.py +++ b/module/plugins/hooks/RestartFailed.py @@ -15,12 +15,12 @@ class RestartFailed(Addon): __description__ = """Restart all the failed downloads in queue""" __license__ = "GPLv3" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - - def periodical(self): + + def periodical_task(self): self.log_info(_("Restarting all failed downloads...")) self.pyload.api.restartFailed() def activate(self): - self.start_periodical(self.config.get('interval') * 60) + self.periodical.start(self.config.get('interval') * 60) |