diff --git a/scripts/poster.py b/scripts/poster.py index f307c71..02b5713 100755 --- a/scripts/poster.py +++ b/scripts/poster.py @@ -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)