diff options
author | Ivan <malkavi@users.noreply.github.com> | 2015-10-21 19:12:39 +0200 |
---|---|---|
committer | Ivan <malkavi@users.noreply.github.com> | 2015-10-21 19:12:39 +0200 |
commit | 9f3351e8824826b172784c6ce35011ca703a0aeb (patch) | |
tree | 30de0d1287eef6db19ff7f80159df12c61685bde /module | |
parent | [Notifier] Fix https://github.com/pyload/pyload/issues/2092 (diff) | |
download | pyload-9f3351e8824826b172784c6ce35011ca703a0aeb.tar.xz |
PushOver fix
msg can't be None or empty for PushOver.
Diffstat (limited to 'module')
-rw-r--r-- | module/plugins/hooks/PushOver.py | 6 |
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, |