mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-08-19 04:49:36 -07:00
Retrieve collection thumb instead of composite
This commit is contained in:
parent
bd53c19bf3
commit
0f9fb9deb7
1 changed files with 6 additions and 0 deletions
|
@ -2833,7 +2833,13 @@ class PmsConnect(object):
|
||||||
web_img = img.startswith('http')
|
web_img = img.startswith('http')
|
||||||
resource_img = img.startswith('/:/resources')
|
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:
|
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())
|
img = '{}/{}'.format(img.rstrip('/'), helpers.timestamp())
|
||||||
|
|
||||||
if web_img:
|
if web_img:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue