From 341f4040ff48fd3e5570427729e83b7ba12af91a Mon Sep 17 00:00:00 2001 From: JonnyWong16 Date: Wed, 21 Mar 2018 08:23:05 -0700 Subject: [PATCH] Hash image with UUID --- plexpy/notification_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plexpy/notification_handler.py b/plexpy/notification_handler.py index 8fb866f6..579e0501 100644 --- a/plexpy/notification_handler.py +++ b/plexpy/notification_handler.py @@ -1137,7 +1137,8 @@ def set_hash_image_info(img=None, rating_key=None, width=600, height=1000, img = '/'.join(img_split[:5]) rating_key = rating_key or img_split[3] - img_string = '{}{}{}{}{}{}{}'.format(rating_key, width, height, opacity, background, blur, fallback) + img_string = '{}{}{}{}{}{}{}{}'.format(plexpy.CONFIG.PMS_UUID, img, rating_key, width, height, + opacity, background, blur, fallback) img_hash = hashlib.sha256(img_string).hexdigest() keys = {'img_hash': img_hash}