summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks/WindowsPhoneNotify.py
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-14 03:17:03 +0100
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-12-27 20:52:34 +0100
commit65fc05e88db6af85a6a4e5ac5f6c22d41270a48b (patch)
tree3fad449f10ba75801c1df28228c270826fb216f9 /module/plugins/hooks/WindowsPhoneNotify.py
parent[XFileSharing] regexp hotfix (diff)
downloadpyload-65fc05e88db6af85a6a4e5ac5f6c22d41270a48b.tar.xz
Update notifiers
Diffstat (limited to 'module/plugins/hooks/WindowsPhoneNotify.py')
-rw-r--r--module/plugins/hooks/WindowsPhoneNotify.py29
1 files changed, 16 insertions, 13 deletions
diff --git a/module/plugins/hooks/WindowsPhoneNotify.py b/module/plugins/hooks/WindowsPhoneNotify.py
index cd5f5dea4..84d122811 100644
--- a/module/plugins/hooks/WindowsPhoneNotify.py
+++ b/module/plugins/hooks/WindowsPhoneNotify.py
@@ -9,20 +9,23 @@ from module.plugins.internal.Notifier import Notifier
class WindowsPhoneNotify(Notifier):
__name__ = "WindowsPhoneNotify"
__type__ = "hook"
- __version__ = "0.15"
+ __version__ = "0.17"
__status__ = "testing"
- __config__ = [("activated" , "bool", "Activated" , False),
- ("push-id" , "str" , "Push ID" , "" ),
- ("push-url" , "str" , "Push url" , "" ),
- ("notifycaptcha" , "bool", "Notify captcha request" , True ),
- ("notifypackage" , "bool", "Notify package finished" , True ),
- ("notifyprocessed", "bool", "Notify packages processed" , True ),
- ("notifyupdate" , "bool", "Notify plugin updates" , True ),
- ("notifyexit" , "bool", "Notify pyLoad shutdown" , True ),
- ("sendtimewait" , "int" , "Timewait in seconds between notifications", 5 ),
- ("sendpermin" , "int" , "Max notifications per minute" , 12 ),
- ("ignoreclient" , "bool", "Send notifications if client is connected", False)]
+ __config__ = [("activated" , "bool", "Activated" , False),
+ ("pushid" , "str" , "Push ID" , "" ),
+ ("pushurl" , "str" , "Push url" , "" ),
+ ("captcha" , "bool", "Notify captcha request" , True ),
+ ("reconnection" , "bool", "Notify reconnection request" , False),
+ ("downloadfinished", "bool", "Notify download finished" , True ),
+ ("downloadfailed" , "bool", "Notify download failed" , True ),
+ ("packagefinished" , "bool", "Notify package finished" , True ),
+ ("packagefailed" , "bool", "Notify package failed" , True ),
+ ("update" , "bool", "Notify pyLoad update" , False),
+ ("exit" , "bool", "Notify pyLoad shutdown/restart" , False),
+ ("sendinterval" , "int" , "Interval in seconds between notifications", 1 ),
+ ("sendpermin" , "int" , "Max notifications per minute" , 60 ),
+ ("ignoreclient" , "bool", "Send notifications if client is connected", True )]
__description__ = """Send push notifications to Windows Phone"""
__license__ = "GPLv3"
@@ -31,7 +34,7 @@ class WindowsPhoneNotify(Notifier):
def get_key(self):
- return self.get_config('push-id'), self.get_config('push-url')
+ return self.config.get('pushid'), self.config.get('pushurl')
def format_request(self, msg):