'ß'->'SS' (fixes #1606)
This commit is contained in:
parent
275b51755c
commit
cd684fe30f
1 changed files with 5 additions and 4 deletions
|
@ -7,8 +7,8 @@ import os
|
||||||
root_dir = os.path.normpath(os.path.abspath(os.path.join(os.path.dirname(__file__), '..')))
|
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
|
# using virtualenv's activate_this.py to reorder sys.path
|
||||||
activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
|
#activate_this = os.path.join(root_dir, 'bin', 'activate_this.py')
|
||||||
execfile(activate_this, dict(__file__=activate_this))
|
#execfile(activate_this, dict(__file__=activate_this))
|
||||||
|
|
||||||
import Image
|
import Image
|
||||||
import ImageDraw
|
import ImageDraw
|
||||||
|
@ -35,8 +35,9 @@ def get_frame(id, height, position):
|
||||||
|
|
||||||
def render_poster(data, poster):
|
def render_poster(data, poster):
|
||||||
|
|
||||||
title = ox.decode_html(data.get('title', '')).upper()
|
sz = 'ß'.decode('UTF-8')
|
||||||
director = ox.decode_html(u', '.join(data.get('director', []))).upper()
|
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', ''))
|
year = str(data.get('year', ''))
|
||||||
duration = data.get('duration')
|
duration = data.get('duration')
|
||||||
oxdb_id = data['oxdbId']
|
oxdb_id = data['oxdbId']
|
||||||
|
|
Loading…
Reference in a new issue