From 193778f0f4bd9f8c0604c1148b6e494ec128a8bc Mon Sep 17 00:00:00 2001 From: croneter Date: Wed, 23 Dec 2020 15:35:03 +0100 Subject: [PATCH] Fix hashing for playlists --- resources/lib/playlists/common.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/resources/lib/playlists/common.py b/resources/lib/playlists/common.py index 02131ad9..3cb6dedb 100644 --- a/resources/lib/playlists/common.py +++ b/resources/lib/playlists/common.py @@ -128,8 +128,8 @@ def kodi_playlist_hash(path): stat = os.stat(path) # stat.st_size is of type long; stat.st_mtime is of type float - hash both m = hashlib.md5() - m.update(repr(stat.st_size)) - m.update(repr(stat.st_mtime)) + m.update(repr(stat.st_size).encode()) + m.update(repr(stat.st_mtime).encode()) return m.hexdigest()