diff options
author | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 03:40:45 +0100 |
---|---|---|
committer | Walter Purcaro <vuolter@gmail.com> | 2015-02-16 03:40:45 +0100 |
commit | fcead1870013b6a970eca7878a66dbe783c80ea3 (patch) | |
tree | 9837d3b2cacba2f5d1a4c620b1cd02f26571b454 /pyload/plugin/addon/DeleteFinished.py | |
parent | Init cosmetics (diff) | |
download | pyload-fcead1870013b6a970eca7878a66dbe783c80ea3.tar.xz |
Partially revert acc46fc3497a66a427b795b4a22c6e71d69185a1
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 045f58d61..59f2e3321 100644 --- a/pyload/plugin/addon/DeleteFinished.py +++ b/pyload/plugin/addon/DeleteFinished.py @@ -5,16 +5,16 @@ from pyload.plugin.Addon import Addon class DeleteFinished(Addon): - __name = "DeleteFinished" - __type = "addon" - __version = "1.11" + __name__ = "DeleteFinished" + __type__ = "addon" + __version__ = "1.11" - __config = [('interval' , 'int' , 'Delete every (hours)' , '72' ), + __config__ = [('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"] @@ -45,7 +45,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.addEvent('packageFinished', self.wakeup) |