summaryrefslogtreecommitdiffstats
path: root/pyload/plugins/addon/WindowsPhoneToastNotify.py
diff options
context:
space:
mode:
Diffstat (limited to 'pyload/plugins/addon/WindowsPhoneToastNotify.py')
-rw-r--r--pyload/plugins/addon/WindowsPhoneToastNotify.py15
1 files changed, 9 insertions, 6 deletions
diff --git a/pyload/plugins/addon/WindowsPhoneToastNotify.py b/pyload/plugins/addon/WindowsPhoneToastNotify.py
index e6605dfb2..e35f74e84 100644
--- a/pyload/plugins/addon/WindowsPhoneToastNotify.py
+++ b/pyload/plugins/addon/WindowsPhoneToastNotify.py
@@ -7,22 +7,23 @@ from pyload.plugins.base.Addon import Addon
class WindowsPhoneToastNotify(Addon):
- __name__ = "WindowsPhoneToastNotify"
- __type__ = "addon"
+ __name__ = "WindowsPhoneToastNotify"
+ __type__ = "addon"
__version__ = "0.02"
- __config__ = [("activated", "bool", "Activated", False),
- ("force", "bool", "Force even if client is connected", False),
+ __config__ = [("force", "bool", "Force even if client is connected", False),
("pushId", "str", "pushId", ""),
("pushUrl", "str", "pushUrl", ""),
("pushTimeout", "int", "Timeout between notifications in seconds", 0)]
__description__ = """Send push notifications to Windows Phone"""
- __authors__ = [("Andy Voigt", "phone-support@hotmail.de")]
+ __license__ = "GPLv3"
+ __authors__ = [("Andy Voigt", "phone-support@hotmail.de")]
def setup(self):
- self.info = {}
+ self.info = {} #@TODO: Remove in 0.4.10
+
def getXmlData(self):
myxml = ("<?xml version='1.0' encoding='utf-8'?> <wp:Notification xmlns:wp='WPNotification'> "
@@ -30,6 +31,7 @@ class WindowsPhoneToastNotify(Addon):
"</wp:Toast> </wp:Notification>")
return myxml
+
def doRequest(self):
URL = self.getConfig("pushUrl")
request = self.getXmlData()
@@ -45,6 +47,7 @@ class WindowsPhoneToastNotify(Addon):
webservice.close()
self.setStorage("LAST_NOTIFY", time.time())
+
def newCaptchaTask(self, task):
if not self.getConfig("pushId") or not self.getConfig("pushUrl"):
return False