poster batch

This commit is contained in:
j 2023-11-17 17:14:59 +01:00
parent ea83be1b7f
commit 0191fc1769
2 changed files with 5 additions and 0 deletions

View file

@ -545,6 +545,7 @@ examples (config.SITENAME.jsonc) that are part of this pan.do/ra distribution.
"columnRequired": true,
"columnWidth": 180,
"filter": true,
"poster": true,
"sort": true
},
{

View file

@ -19,6 +19,8 @@ def render_poster(data, poster):
director = ox.decode_html(', '.join(data.get('director', [])))
if not director and "type" in data:
director = ", ".join(data["type"])
if director == "Voice Over" and data.get("batch"):
director = "%s (vo)" % ", ".join(data["batch"])
year = str(data.get('year', ''))
series = data.get('isSeries', False)
oxdb_id = data['oxdbId']
@ -41,6 +43,8 @@ def render_poster(data, poster):
i = 500
elif type == "annimation":
i = 600
elif type == "voice over":
i = 300
if i < 127:
color = (127, i, 0)