summaryrefslogtreecommitdiffstats
path: root/module/plugins/hooks
diff options
context:
space:
mode:
authorGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 03:01:08 +0200
committerGravatar Walter Purcaro <vuolter@users.noreply.github.com> 2015-10-22 03:01:08 +0200
commit28e340d990bfb33d4e3cacda95145761abffc462 (patch)
tree96b2cd4202fc65985488d1f21f0b5e76cfae1fa3 /module/plugins/hooks
parent[MultiHoster] Fix get_info (diff)
downloadpyload-28e340d990bfb33d4e3cacda95145761abffc462.tar.xz
Spare code cosmetics
Diffstat (limited to 'module/plugins/hooks')
-rw-r--r--module/plugins/hooks/PushOver.py8
1 files changed, 2 insertions, 6 deletions
diff --git a/module/plugins/hooks/PushOver.py b/module/plugins/hooks/PushOver.py
index 06bbd6ab8..5d5e927ac 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.03"
+ __version__ = "0.04"
__status__ = "testing"
__config__ = [("activated" , "bool", "Activated" , False),
@@ -33,13 +33,9 @@ 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,
'title' : event,
- 'message': msg})
+ 'message': msg or event}) #@NOTE: msg can not be None or empty