From e4c36013129c23b822d4da8bd9021357451b5d40 Mon Sep 17 00:00:00 2001 From: samwiseg00 Date: Sun, 4 Nov 2018 14:18:34 -0500 Subject: [PATCH] Add user_email parameter for notifications --- plexpy/common.py | 1 + plexpy/notification_handler.py | 1 + 2 files changed, 2 insertions(+) diff --git a/plexpy/common.py b/plexpy/common.py index bbd52566..e06fdf74 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -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', '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': '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': '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.'}, diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index a6807d39..d4423b03 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -749,6 +749,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'user_streams': user_stream_count, 'user': notify_params['friendly_name'], 'username': notify_params['user'], + 'user_email': notify_params['email'], 'device': notify_params['device'], 'platform': notify_params['platform'], 'product': notify_params['product'],