mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Hash image with UUID
This commit is contained in:
parent
e9a1b2ea38
commit
341f4040ff
1 changed files with 2 additions and 1 deletions
|
@ -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}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue