aboutsummaryrefslogtreecommitdiffstats
path: root/backend/zmusic/picard/file.py
diff options
context:
space:
mode:
Diffstat (limited to 'backend/zmusic/picard/file.py')
-rw-r--r--backend/zmusic/picard/file.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/backend/zmusic/picard/file.py b/backend/zmusic/picard/file.py
index 0e246eb..beb0dac 100644
--- a/backend/zmusic/picard/file.py
+++ b/backend/zmusic/picard/file.py
@@ -41,8 +41,8 @@ class File(dict, object):
self["length"] = file.info.length
- hash = hashlib.new("sha1")
- hash.update(str(metadata) + self["filename"])
+ hash = hashlib.new("sha256")
+ hash.update((str(metadata) + self["filename"]).encode('utf-8'))
self["id"] = hash.hexdigest()
def __missing__(self, key):