Only strip timestamp when caching image if it is metadata

This commit is contained in:
JonnyWong16 2016-05-14 19:47:14 -07:00
parent 0cbc4b9546
commit 085d937946

View file

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