From 79cd2ca9b9f84f34cbfcee7fefdd66e5e29dfb32 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Sat, 18 Apr 2020 14:30:03 -0700 Subject: [PATCH] Add user_thumb to notification parameters --- 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 88efa0b3..8ca6eeb0 100644 --- a/plexpy/common.py +++ b/plexpy/common.py @@ -354,6 +354,7 @@ NOTIFICATION_PARAMETERS = [ {'name': 'User', 'type': 'str', 'value': 'user', 'description': 'The friendly name of the user streaming.'}, {'name': 'Username', 'type': 'str', 'value': 'username', 'description': 'The username of the user streaming.'}, {'name': 'User Email', 'type': 'str', 'value': 'user_email', 'description': 'The email address of the user streaming.'}, + {'name': 'User Thumb', 'type': 'str', 'value': 'user_thumb', 'description': 'The profile picture URL of the user 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 04e78de1..ac2fd201 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -830,6 +830,7 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m 'user': notify_params['friendly_name'], 'username': notify_params['user'], 'user_email': notify_params['email'], + 'user_thumb': notify_params['user_thumb'], 'device': notify_params['device'], 'platform': notify_params['platform'], 'product': notify_params['product'],