summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/DeleteFinished.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 21:06:10 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-24 22:38:26 +0200
commit5a139055ae658d3a05cbb658cbd66aeae0d01db5 (patch)
treeb283d2f470fe2a4115474959e4982a59bc686067 /module/plugins/hooks/DeleteFinished.py
parentMerge pull request #1537 from GammaC0de/patch-1 (diff)
downloadpyload-5a139055ae658d3a05cbb658cbd66aeae0d01db5.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks/DeleteFinished.py')
-rw-r--r--module/plugins/hooks/DeleteFinished.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/module/plugins/hooks/DeleteFinished.py b/module/plugins/hooks/DeleteFinished.py
index 29bd7a4e1..38d2a7ed0 100644
--- a/module/plugins/hooks/DeleteFinished.py
+++ b/module/plugins/hooks/DeleteFinished.py
@@ -35,17 +35,17 @@ class DeleteFinished(Hook):
self.logInfo(msg % (_('including') if deloffline else _('excluding')))
self.deleteFinished(mode)
self.info['sleep'] = True
- self.addEvent('packageFinished', self.wakeup)
+ self.addEvent('package_finished', self.wakeup)
# def pluginConfigChanged(self, plugin, name, value):
# if name == "interval" and value != self.interval:
# self.interval = value * 3600
- # self.initPeriodical()
+ # self.init_periodical()
def deactivate(self):
- self.manager.removeEvent('packageFinished', self.wakeup)
+ self.manager.removeEvent('package_finished', self.wakeup)
def activate(self):
@@ -53,7 +53,7 @@ class DeleteFinished(Hook):
# interval = self.getConfig('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.addEvent('package_finished', self.wakeup)
## own methods ##
@@ -64,7 +64,7 @@ class DeleteFinished(Hook):
def wakeup(self, pypack):
- self.manager.removeEvent('packageFinished', self.wakeup)
+ self.manager.removeEvent('package_finished', self.wakeup)
self.info['sleep'] = False