diff options
Diffstat (limited to 'pyload/plugin/addon/DeleteFinished.py')
-rw-r--r-- | pyload/plugin/addon/DeleteFinished.py | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/pyload/plugin/addon/DeleteFinished.py b/pyload/plugin/addon/DeleteFinished.py index 989271fa8..2349503f6 100644 --- a/pyload/plugin/addon/DeleteFinished.py +++ b/pyload/plugin/addon/DeleteFinished.py @@ -5,17 +5,17 @@ from pyload.plugin.Addon import Addon class DeleteFinished(Addon): - __name__ = "DeleteFinished" - __type__ = "addon" - __version__ = "1.12" + __name = "DeleteFinished" + __type = "addon" + __version = "1.12" - __config__ = [("activated" , "bool", "Activated" , "False"), + __config = [("activated" , "bool", "Activated" , "False"), ("interval" , "int" , "Delete every (hours)" , "72" ), ("deloffline", "bool", "Delete packages with offline links", "False")] - __description__ = """Automatically delete all finished packages from queue""" - __license__ = "GPLv3" - __authors__ = [("Walter Purcaro", "vuolter@gmail.com")] + __description = """Automatically delete all finished packages from queue""" + __license = "GPLv3" + __authors = [("Walter Purcaro", "vuolter@gmail.com")] # event_list = ["pluginConfigChanged"] @@ -52,7 +52,7 @@ class DeleteFinished(Addon): def activate(self): self.info['sleep'] = True # interval = self.getConfig('interval') - # self.pluginConfigChanged(self.__name__, 'interval', interval) + # self.pluginConfigChanged(self.__name, 'interval', interval) self.interval = max(self.MIN_CHECK_INTERVAL, self.getConfig('interval') * 60 * 60) self.addEvent('packageFinished', self.wakeup) self.initPeriodical() |