diff options
Diffstat (limited to 'module/plugins/hooks/RestartFailed.py')
-rw-r--r-- | module/plugins/hooks/RestartFailed.py | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/module/plugins/hooks/RestartFailed.py b/module/plugins/hooks/RestartFailed.py index 33573a317..2babff89d 100644 --- a/module/plugins/hooks/RestartFailed.py +++ b/module/plugins/hooks/RestartFailed.py @@ -15,10 +15,7 @@ class RestartFailed(Addon): __description__ = """Restart all the failed downloads in queue""" __license__ = "GPLv3" __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] - - - PERIODICAL_INTERVAL = 15 * 60 #: 15 minutes - + def periodical(self): self.log_info(_("Restarting all failed downloads...")) @@ -26,4 +23,4 @@ class RestartFailed(Addon): def activate(self): - self.set_interval(self.config.get('interval') * 60) + self.start_periodical(self.config.get('interval') * 60) |