From 52746ea0ed35a7ebdc91df2bd01003646b229061 Mon Sep 17 00:00:00 2001 From: Jan Gerber Date: Tue, 22 Sep 2015 10:38:05 +0100 Subject: [PATCH] title/collection can be unicode --- scripts/poster.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/poster.py b/scripts/poster.py index 02b5713..33d3c3c 100755 --- a/scripts/poster.py +++ b/scripts/poster.py @@ -37,8 +37,8 @@ def get_frame(id, height, position): def get_hue(collection, title): return ox.getHSL( [int(''.join(x), 16) for x in zip( - hashlib.sha1(collection).hexdigest()[:3], - hashlib.sha1(title).hexdigest()[:3] + hashlib.sha1(collection.encode('utf-8')).hexdigest()[:3], + hashlib.sha1(title.encode('utf-8')).hexdigest()[:3] )] )[0]