mirror of
https://github.com/Tautulli/Tautulli.git
synced 2025-07-11 15:56:07 -07:00
Encode image hash before converting to hex
This commit is contained in:
parent
077dfe7164
commit
1bdf6bbb66
1 changed files with 1 additions and 1 deletions
|
@ -1339,7 +1339,7 @@ def set_hash_image_info(img=None, rating_key=None, width=750, height=1000,
|
|||
|
||||
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.encode('utf-8')).hexdigest()
|
||||
|
||||
if add_to_db:
|
||||
keys = {'img_hash': img_hash}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue