summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/AndroidPhoneNotify.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 06:56:13 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-06-15 06:56:13 +0200
commitf4b893e5ee24769584a2da1866c665489f7019ec (patch)
tree08d23a536fad2ccb799f683cda6543e1a45bb9a4 /module/plugins/hooks/AndroidPhoneNotify.py
parentFix https://github.com/pyload/pyload/issues/1498 (diff)
downloadpyload-f4b893e5ee24769584a2da1866c665489f7019ec.tar.xz
Hook plugin code cosmetics
Diffstat (limited to 'module/plugins/hooks/AndroidPhoneNotify.py')
-rw-r--r--module/plugins/hooks/AndroidPhoneNotify.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/module/plugins/hooks/AndroidPhoneNotify.py b/module/plugins/hooks/AndroidPhoneNotify.py
index f987a890b..d582a4a31 100644
--- a/module/plugins/hooks/AndroidPhoneNotify.py
+++ b/module/plugins/hooks/AndroidPhoneNotify.py
@@ -60,7 +60,7 @@ class AndroidPhoneNotify(Hook):
self.notify(_("Exiting pyLoad"))
- def newCaptchaTask(self, task):
+ def captcha_task(self, task):
if not self.getConfig('notifycaptcha'):
return
@@ -97,13 +97,13 @@ class AndroidPhoneNotify(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
getURL("http://www.notifymyandroid.com/publicapi/notify",