From 085d937946fb5eebe65300a4b2519ea06f45b5c9 Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Sat, 14 May 2016 19:47:14 -0700 Subject: [PATCH] Only strip timestamp when caching image if it is metadata --- plexpy/webserve.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plexpy/webserve.py b/plexpy/webserve.py index b6f1e9cd..f5c104bc 100644 --- a/plexpy/webserve.py +++ b/plexpy/webserve.py @@ -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