diff options
Diffstat (limited to 'module/plugins/hooks/DeleteFinished.py')
-rw-r--r-- | module/plugins/hooks/DeleteFinished.py | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py index e72439c0a..17b85959a 100644 --- a/module/plugins/hooks/DeleteFinished.py +++ b/module/plugins/hooks/DeleteFinished.py @@ -7,7 +7,7 @@ from module.plugins.internal.Addon import Addon class DeleteFinished(Addon): __name__ = "DeleteFinished" __type__ = "hook" - __version__ = "1.16" + __version__ = "1.17" __status__ = "testing" __config__ = [("activated" , "bool", "Activated" , False), @@ -22,10 +22,6 @@ class DeleteFinished(Addon): PERIODICAL_INTERVAL = 1 * 60 * 60 #: 1 hour - def activate(self): - self.start_periodical() - - def periodical(self): if not self.info['sleep']: deloffline = self.get_config('deloffline') @@ -43,7 +39,7 @@ class DeleteFinished(Addon): def activate(self): self.info['sleep'] = True - self.interval = max(self.PERIODICAL_INTERVAL, self.get_config('interval') * 60 * 60) + self.set_interval(self.get_config('interval') * 60 * 60) self.add_event('package_finished', self.wakeup) |