Add thumbnails to notification options

This commit is contained in:
JonnyWong16 2017-04-19 22:09:39 -07:00
parent 014cac7789
commit beb8df9dda
3 changed files with 32 additions and 13 deletions

View file

@ -709,15 +709,15 @@ class ANDROIDAPP(Notifier):
if kwargs.get('parameters', {}).get('media_type'):
pretty_metadata = PrettyMetadata(kwargs['parameters'])
thumb = pretty_metadata.parameters.get('thumb','')
poster_thumb = pretty_metadata.parameters.get('poster_thumb','')
else:
thumb = ''
poster_thumb = ''
plaintext_data = {'notification_id': notification_id,
'subject': subject.encode("utf-8"),
'body': body.encode("utf-8"),
'priority': self.config['priority'],
'thumb': thumb}
'poster_thumb': poster_thumb}
#logger.debug("Plaintext data: {}".format(plaintext_data))