diff --git a/scripts/poster.py b/scripts/poster.py index 8151ea8..1eda05c 100755 --- a/scripts/poster.py +++ b/scripts/poster.py @@ -28,18 +28,13 @@ 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)))) - type = data.get('type') - if type: - type = data.get('type')[0].lower() - if type == "original": + if data.get('type') == ["Original"]: i = 0 - elif type == "background": + elif data.get('type') == ["Background"]: i = 200 - elif type == "foreground": + elif data.get('type') == ["Foreground"]: i = 400 - elif type == "foreground2": - i = 500 - elif type == "annimation": + elif data.get('type') == ["Annimation"]: i = 600 if i < 127: diff --git a/static/js/infoView.t_for_time.js b/static/js/infoView.t_for_time.js index 7a87c3d..d763fe0 100644 --- a/static/js/infoView.t_for_time.js +++ b/static/js/infoView.t_for_time.js @@ -574,13 +574,11 @@ pandora.ui.infoView = function(data, isMixed) { pandora.api.find(request, function(response) { response.data.items.forEach(item => { if (item.id != data.id) { - var type = item.type ? item.type[0] : 'Unknown' $element.append( - ` ${type}` + ` ${item.type[0]}` ) } }) - $element.append(`[all]`) pandora.createLinks($element) }) }