mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-30 11:38:36 -07:00
Add keys and ids to Android app notification payload data
This commit is contained in:
parent
e606bd512f
commit
256ddde07d
1 changed files with 9 additions and 8 deletions
|
@ -766,17 +766,18 @@ class ANDROIDAPP(Notifier):
|
|||
else:
|
||||
device = device[0]
|
||||
|
||||
if kwargs.get('parameters', {}).get('media_type'):
|
||||
pretty_metadata = PrettyMetadata(kwargs['parameters'])
|
||||
poster_thumb = pretty_metadata.parameters.get('poster_thumb','')
|
||||
else:
|
||||
poster_thumb = ''
|
||||
pretty_metadata = PrettyMetadata(kwargs.get('parameters'))
|
||||
|
||||
plaintext_data = {'notification_id': notification_id,
|
||||
'subject': subject.encode("utf-8"),
|
||||
'body': body.encode("utf-8"),
|
||||
'subject': subject.encode('UTF-8'),
|
||||
'body': body.encode('UTF-8'),
|
||||
'action': action.encode('UTF-8'),
|
||||
'priority': self.config['priority'],
|
||||
'poster_thumb': poster_thumb}
|
||||
'session_key': pretty_metadata.parameters.get('session_key',''),
|
||||
'session_id': pretty_metadata.parameters.get('session_id',''),
|
||||
'user_id': pretty_metadata.parameters.get('user_id',''),
|
||||
'rating_key': pretty_metadata.parameters.get('rating_key',''),
|
||||
'poster_thumb': pretty_metadata.parameters.get('poster_thumb','')}
|
||||
|
||||
#logger.debug("Plaintext data: {}".format(plaintext_data))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue