update poster script
This commit is contained in:
parent
f58f130025
commit
f5b47164fd
1 changed files with 7 additions and 1 deletions
|
@ -45,7 +45,13 @@ def get_hue(collection, title):
|
|||
def render_poster(data, poster):
|
||||
|
||||
title = ox.decode_html(data.get('title', '')).upper()
|
||||
director = ox.decode_html(u', '.join(data.get('director', []))).upper()
|
||||
for key in [
|
||||
'director', 'cinematographer', 'editor',
|
||||
'writer', 'producer', 'featuring'
|
||||
]:
|
||||
director = ox.decode_html(u', '.join(data.get(key, []))).upper()
|
||||
if director:
|
||||
break
|
||||
for key, value in {u'\u03a0': 'PI', u'ß': u'SS'}.iteritems():
|
||||
title = title.replace(key, value)
|
||||
director = director.replace(key, value)
|
||||
|
|
Loading…
Reference in a new issue