diff options
Diffstat (limited to 'module/plugins/hooks/WindowsPhoneNotify.py')
-rw-r--r-- | module/plugins/hooks/WindowsPhoneNotify.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/WindowsPhoneNotify.py b/module/plugins/hooks/WindowsPhoneNotify.py index dfc93f89c..97e3b6da4 100644 --- a/module/plugins/hooks/WindowsPhoneNotify.py +++ b/module/plugins/hooks/WindowsPhoneNotify.py @@ -61,7 +61,7 @@ class WindowsPhoneNotify(Hook): self.notify(_("Exiting pyLoad")) - def newCaptchaTask(self, task): + def captcha_task(self, task): if not self.getConfig('notifycaptcha'): return @@ -104,13 +104,13 @@ class WindowsPhoneNotify(Hook): elapsed_time = time.time() - self.last_notify - if elapsed_time < self.getConf("sendtimewait"): + if elapsed_time < self.getConfig("sendtimewait"): return if elapsed_time > 60: self.notifications = 0 - elif self.notifications >= self.getConf("sendpermin"): + elif self.notifications >= self.getConfig("sendpermin"): return request = self.getXmlData("%s: %s" % (event, msg) if msg else event) |