mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-15 01:32:57 -07:00
Add thumbnails to notification options
This commit is contained in:
parent
014cac7789
commit
beb8df9dda
3 changed files with 32 additions and 13 deletions
|
@ -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))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue