From 0f9fb9deb7c8d28078e6e4c707dec5d9b580d863 Mon Sep 17 00:00:00 2001 From: JonnyWong16 <9099342+JonnyWong16@users.noreply.github.com> Date: Fri, 23 Apr 2021 14:29:07 -0700 Subject: [PATCH] Retrieve collection thumb instead of composite --- plexpy/pmsconnect.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/plexpy/pmsconnect.py b/plexpy/pmsconnect.py index 8bddcbd6..faf518c1 100644 --- a/plexpy/pmsconnect.py +++ b/plexpy/pmsconnect.py @@ -2833,7 +2833,13 @@ class PmsConnect(object): web_img = img.startswith('http') resource_img = img.startswith('/:/resources') + if 'collection' in img and 'composite' in img: + img = img.replace('composite', 'thumb') + if refresh and not web_img and not resource_img: + img_split = img.split('/') + if img_split[-1].isdigit(): + img = '/'.join(img_split[:-1]) img = '{}/{}'.format(img.rstrip('/'), helpers.timestamp()) if web_img: