mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-16 02:02:58 -07:00
Add server_id to Andoird App notification data
This commit is contained in:
parent
7f1a4ec34a
commit
769934c8a5
1 changed files with 4 additions and 2 deletions
|
@ -934,7 +934,8 @@ class ANDROIDAPP(Notifier):
|
||||||
'data': {'encrypted': True,
|
'data': {'encrypted': True,
|
||||||
'cipher_text': base64.b64encode(encrypted_data),
|
'cipher_text': base64.b64encode(encrypted_data),
|
||||||
'nonce': base64.b64encode(nonce),
|
'nonce': base64.b64encode(nonce),
|
||||||
'salt': base64.b64encode(salt)}
|
'salt': base64.b64encode(salt),
|
||||||
|
'server_id': plexpy.CONFIG.PMS_UUID}
|
||||||
}
|
}
|
||||||
else:
|
else:
|
||||||
logger.warn("Tautulli Notifiers :: PyCryptodome library is missing. "
|
logger.warn("Tautulli Notifiers :: PyCryptodome library is missing. "
|
||||||
|
@ -945,7 +946,8 @@ class ANDROIDAPP(Notifier):
|
||||||
'include_player_ids': [device['onesignal_id']],
|
'include_player_ids': [device['onesignal_id']],
|
||||||
'contents': {'en': 'Tautulli Notification'},
|
'contents': {'en': 'Tautulli Notification'},
|
||||||
'data': {'encrypted': False,
|
'data': {'encrypted': False,
|
||||||
'plain_text': plaintext_data}
|
'plain_text': plaintext_data,
|
||||||
|
'server_id': plexpy.CONFIG.PMS_UUID}
|
||||||
}
|
}
|
||||||
|
|
||||||
#logger.debug("OneSignal payload: {}".format(payload))
|
#logger.debug("OneSignal payload: {}".format(payload))
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue