mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 07:46:07 -07:00
Only strip timestamp when caching image if it is metadata
This commit is contained in:
parent
0cbc4b9546
commit
085d937946
1 changed files with 1 additions and 1 deletions
|
@ -2890,7 +2890,7 @@ class WebInterface(object):
|
|||
if rating_key and not img:
|
||||
img = '/library/metadata/%s/thumb/1337' % rating_key
|
||||
|
||||
img_string = img.rsplit('/', 1)[0]
|
||||
img_string = img.rsplit('/', 1)[0] if '/library/metadata' in img else img
|
||||
img_string += '%s%s' % (width, height)
|
||||
fp = hashlib.md5(img_string).hexdigest()
|
||||
fp += '.jpg' # we want to be able to preview the thumbs
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue