Add server_id to Andoird App notification data

This commit is contained in:
JonnyWong16 2020-07-23 17:12:31 -07:00
parent 7f1a4ec34a
commit 769934c8a5
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -934,7 +934,8 @@ class ANDROIDAPP(Notifier):
'data': {'encrypted': True,
'cipher_text': base64.b64encode(encrypted_data),
'nonce': base64.b64encode(nonce),
'salt': base64.b64encode(salt)}
'salt': base64.b64encode(salt),
'server_id': plexpy.CONFIG.PMS_UUID}
}
else:
logger.warn("Tautulli Notifiers :: PyCryptodome library is missing. "
@ -945,7 +946,8 @@ class ANDROIDAPP(Notifier):
'include_player_ids': [device['onesignal_id']],
'contents': {'en': 'Tautulli Notification'},
'data': {'encrypted': False,
'plain_text': plaintext_data}
'plain_text': plaintext_data,
'server_id': plexpy.CONFIG.PMS_UUID}
}
#logger.debug("OneSignal payload: {}".format(payload))