Add user_email parameter for notifications

This commit is contained in:
samwiseg00 2018-11-04 14:18:34 -05:00
parent 56a91de2c4
commit e4c3601312
2 changed files with 2 additions and 0 deletions

View file

@ -331,6 +331,7 @@ NOTIFICATION_PARAMETERS = [
{'name': 'User Streams', 'type': 'int', 'value': 'user_streams', 'description': 'The number of concurrent streams by the person streaming.'}, {'name': 'User Streams', 'type': 'int', 'value': 'user_streams', 'description': 'The number of concurrent streams by the person streaming.'},
{'name': 'User', 'type': 'str', 'value': 'user', 'description': 'The friendly name of the person streaming.'}, {'name': 'User', 'type': 'str', 'value': 'user', 'description': 'The friendly name of the person streaming.'},
{'name': 'Username', 'type': 'str', 'value': 'username', 'description': 'The username of the person streaming.'}, {'name': 'Username', 'type': 'str', 'value': 'username', 'description': 'The username of the person streaming.'},
{'name': 'User Email', 'type': 'str', 'value': 'user_email', 'description': 'The email address of the person streaming.'},
{'name': 'Device', 'type': 'str', 'value': 'device', 'description': 'The type of client device being used for playback.'}, {'name': 'Device', 'type': 'str', 'value': 'device', 'description': 'The type of client device being used for playback.'},
{'name': 'Platform', 'type': 'str', 'value': 'platform', 'description': 'The type of client platform being used for playback.'}, {'name': 'Platform', 'type': 'str', 'value': 'platform', 'description': 'The type of client platform being used for playback.'},
{'name': 'Product', 'type': 'str', 'value': 'product', 'description': 'The type of client product being used for playback.'}, {'name': 'Product', 'type': 'str', 'value': 'product', 'description': 'The type of client product being used for playback.'},

View file

@ -749,6 +749,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m
'user_streams': user_stream_count, 'user_streams': user_stream_count,
'user': notify_params['friendly_name'], 'user': notify_params['friendly_name'],
'username': notify_params['user'], 'username': notify_params['user'],
'user_email': notify_params['email'],
'device': notify_params['device'], 'device': notify_params['device'],
'platform': notify_params['platform'], 'platform': notify_params['platform'],
'product': notify_params['product'], 'product': notify_params['product'],