Hash image with UUID
This commit is contained in:
@@ -1137,7 +1137,8 @@ def set_hash_image_info(img=None, rating_key=None, width=600, height=1000,
|
|||||||
img = '/'.join(img_split[:5])
|
img = '/'.join(img_split[:5])
|
||||||
rating_key = rating_key or img_split[3]
|
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()
|
img_hash = hashlib.sha256(img_string).hexdigest()
|
||||||
|
|
||||||
keys = {'img_hash': img_hash}
|
keys = {'img_hash': img_hash}
|
||||||
|
Reference in New Issue
Block a user