From cd684fe30f334e1d594b65646fab069953ce8075 Mon Sep 17 00:00:00 2001 From: rolux Date: Fri, 5 Jul 2013 17:13:15 +0200 Subject: [PATCH] =?UTF-8?q?'=C3=9F'->'SS'=20(fixes=20#1606)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- scripts/poster.0xdb.py | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/poster.0xdb.py b/scripts/poster.0xdb.py index 9faa71447..22808c42e 100755 --- a/scripts/poster.0xdb.py +++ b/scripts/poster.0xdb.py @@ -7,8 +7,8 @@ import os root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..'))) # using virtualenv's activate_this.py to reorder sys.path -activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') -execfile(activate_this, dict(__file__=activate_this)) +#activate_this = os.path.join(root_dir, 'bin', 'activate_this.py') +#execfile(activate_this, dict(__file__=activate_this)) import Image import ImageDraw @@ -35,8 +35,9 @@ def get_frame(id, height, position): def render_poster(data, poster): - title = ox.decode_html(data.get('title', '')).upper() - director = ox.decode_html(u', '.join(data.get('director', []))).upper() + sz = 'ß'.decode('UTF-8') + title = ox.decode_html(data.get('title', '')).upper().replace(sz, 'SS') + director = ox.decode_html(u', '.join(data.get('director', []))).upper().replace(sz, 'SS') year = str(data.get('year', '')) duration = data.get('duration') oxdb_id = data['oxdbId']