From cbab7c4cbf593646cf1988910e612b7a31e7a8e3 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Tue, 3 Mar 2020 10:58:50 -0800 Subject: [PATCH] Add clip to notification posters --- plexpy/notification_handler.py | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index caede51f..29728605 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -690,6 +690,13 @@ def build_media_notify_params(notify_action=None, session=None, timeline=None, m poster_key = notify_params['parent_rating_key'] poster_title = '%s - %s' % (notify_params['grandparent_title'], notify_params['parent_title']) + elif notify_params['media_type'] == 'clip': + if notify_params['extra_type']: + poster_thumb = notify_params['art'].replace('/art', '/thumb') or notify_params['thumb'] + else: + poster_thumb = notify_params['parent_thumb'] or notify_params['thumb'] + poster_key = notify_params['rating_key'] + poster_title = notify_params['title'] else: poster_thumb = '' poster_key = ''