summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/WindowsPhoneToastNotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'module/plugins/hooks/WindowsPhoneToastNotify.py')
-rw-r--r--module/plugins/hooks/WindowsPhoneToastNotify.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/module/plugins/hooks/WindowsPhoneToastNotify.py b/module/plugins/hooks/WindowsPhoneToastNotify.py
index eed61adbd..cf7920b74 100644
--- a/module/plugins/hooks/WindowsPhoneToastNotify.py
+++ b/module/plugins/hooks/WindowsPhoneToastNotify.py
@@ -25,12 +25,14 @@ class WindowsPhoneToastNotify(Hook):
def setup(self):
self.info = {}
+
def getXmlData(self):
myxml = ("<?xml version='1.0' encoding='utf-8'?> <wp:Notification xmlns:wp='WPNotification'> "
"<wp:Toast> <wp:Text1>Pyload Mobile</wp:Text1> <wp:Text2>Captcha waiting!</wp:Text2> "
"</wp:Toast> </wp:Notification>")
return myxml
+
def doRequest(self):
URL = self.getConfig("pushUrl")
request = self.getXmlData()
@@ -46,6 +48,7 @@ class WindowsPhoneToastNotify(Hook):
webservice.close()
self.setStorage("LAST_NOTIFY", time.time())
+
def newCaptchaTask(self, task):
if not self.getConfig("pushId") or not self.getConfig("pushUrl"):
return False