summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Andy Voigt <voigt1@mailbox.tu-berlin.de> 2013-08-26 21:28:46 +0200
committerGravatar Andy Voigt <voigt1@mailbox.tu-berlin.de> 2013-08-26 21:28:46 +0200
commitf3271b811e0bbdd7a97f9e456f076d847e478979 (patch)
tree38536b73d7f19c36184e5d074a0eb29033ffe959 /module/plugins/hooks
parentWindowsPhoneToastNotify: add notification timeout (diff)
downloadpyload-f3271b811e0bbdd7a97f9e456f076d847e478979.tar.xz
WindowsPhoneToastNotify: fixed type of storage value
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/WindowsPhoneToastNotify.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/module/plugins/hooks/WindowsPhoneToastNotify.py b/module/plugins/hooks/WindowsPhoneToastNotify.py
index f02ce4696..888862575 100644
--- a/module/plugins/hooks/WindowsPhoneToastNotify.py
+++ b/module/plugins/hooks/WindowsPhoneToastNotify.py
@@ -28,7 +28,7 @@ class WindowsPhoneToastNotify(Hook):
("force", "bool", "Force even if client is connected", False),
("pushId", "str", "pushId", ""),
("pushUrl","str","pushUrl", ""),
- ("pushTimeout","int","Timeout between notifications in seconds","360")]
+ ("pushTimeout","int","Timeout between notifications in seconds","0")]
def setup(self):
self.info = {}
@@ -61,7 +61,7 @@ class WindowsPhoneToastNotify(Hook):
if self.core.isClientConnected() and not self.getConfig("force"):
return False
- if (time.time() - self.getStorage("LAST_NOTIFY", 0)) >= self.getConf("pushTimeout"):
+ if (time.time() - float(self.getStorage("LAST_NOTIFY", 0))) < self.getConf("pushTimeout"):
return False
self.doRequest()