summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-21 20:05:30 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-21 20:05:30 +0200
commit8ab3c53c17d9737afab490f10f8a5578406a7be3 (patch)
tree30de0d1287eef6db19ff7f80159df12c61685bde
parent[Notifier] Fix https://github.com/pyload/pyload/issues/2092 (diff)
parentPushOver fix (diff)
downloadpyload-8ab3c53c17d9737afab490f10f8a5578406a7be3.tar.xz
Merge pull request #2093 from malkavi/stable
PushOver fix
-rw-r--r--module/plugins/hooks/PushOver.py6
1 files changed, 5 insertions, 1 deletions
diff --git a/module/plugins/hooks/PushOver.py b/module/plugins/hooks/PushOver.py
index 958af0fa0..06bbd6ab8 100644
--- a/module/plugins/hooks/PushOver.py
+++ b/module/plugins/hooks/PushOver.py
@@ -8,7 +8,7 @@ from module.plugins.internal.Notifier import Notifier
class PushOver(Notifier):
__name__ = "PushOver"
__type__ = "hook"
- __version__ = "0.02"
+ __version__ = "0.03"
__status__ = "testing"
__config__ = [("activated" , "bool", "Activated" , False),
@@ -33,7 +33,11 @@ class PushOver(Notifier):
def send(self, event, msg, key):
+ self.log_info("Sending notification")
token, user = key
+ # msg can not be None or empty
+ if not msg:
+ msg = event
self.load("https://api.pushover.net/1/messages.json",
post={'token' : token,
'user' : user,