Retrieve collection thumb instead of composite

This commit is contained in:
JonnyWong16 2021-04-23 14:29:07 -07:00
commit 0f9fb9deb7
No known key found for this signature in database
GPG key ID: B1F1F9807184697A

View file

@ -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: