Fix Pushover notifications

This commit is contained in:
JonnyWong16 2016-10-10 10:35:02 -07:00 committed by JonnyWong16
parent 0e58369873
commit 31b6ff003a

View file

@ -1122,13 +1122,13 @@ class PUSHOVER(Notifier):
if not subject or not body: if not subject or not body:
return return
data = {'token': self.apitoken, data = {'token': self.config['apitoken'],
'user': self.keys, 'user': self.config['keys'],
'title': event.encode("utf-8"), 'title': subject.encode("utf-8"),
'message': message.encode("utf-8"), 'message': body.encode("utf-8"),
'sound': self.sound, 'sound': self.config['sound'],
'html': self.html_support, 'html': self.config['html_support'],
'priority': self.priority} 'priority': self.config['priority']}
if self.config['incl_url'] and 'metadata' in kwargs: if self.config['incl_url'] and 'metadata' in kwargs:
# Grab formatted metadata # Grab formatted metadata