summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DeleteFinished.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/DeleteFinished.py')
-rw-r--r--module/plugins/hooks/DeleteFinished.py16
1 files changed, 8 insertions, 8 deletions
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 3bc98a7b3..48b262392 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -13,8 +13,6 @@
You should have received a copy of the GNU General Public License
along with this program; if not, see <http://www.gnu.org/licenses/>.
-
- @author: Walter Purcaro
"""
from module.database import style
@@ -24,15 +22,17 @@ from module.plugins.Hook import Hook
class DeleteFinished(Hook):
__name__ = 'DeleteFinished'
__version__ = '1.09'
- __description__ = 'Automatically delete all finished packages from queue'
- __config__ = [
- ('activated', 'bool', 'Activated', 'False'),
- ('interval', 'int', 'Delete every (hours)', '72'),
- ('deloffline', 'bool', 'Delete packages with offline links', 'False')
- ]
+ __type__ = "hook"
+
+ __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"""
__author_name__ = ('Walter Purcaro')
__author_mail__ = ('vuolter@gmail.com')
+
## overwritten methods ##
def periodical(self):
if not self.info['sleep']: