This commit is contained in:
j 2023-10-18 16:23:29 +01:00
parent 9c778bb7de
commit 59da950a20

View file

@ -28,13 +28,18 @@ def render_poster(data, poster):
def get_oxdb_color(oxdb_id, series=False):
i = int(round((int(oxdb_id[2:10], 16) * 762 / pow(2, 32))))
if data.get('type') == ["Original"]:
type = data.get('type')
if type:
type = data.get('type')[0].lower()
if type == "original":
i = 0
elif data.get('type') == ["Background"]:
elif type == "background":
i = 200
elif data.get('type') == ["Foreground"]:
elif type == "foreground":
i = 400
elif data.get('type') == ["Annimation"]:
elif type == "foreground2":
i = 500
elif type == "annimation":
i = 600
if i < 127: