poster
This commit is contained in:
parent
9c778bb7de
commit
59da950a20
1 changed files with 9 additions and 4 deletions
|
@ -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:
|
||||
|
|
Loading…
Reference in a new issue