diff --git a/scripts/poster.py b/scripts/poster.py
index 1eda05c..8151ea8 100755
--- a/scripts/poster.py
+++ b/scripts/poster.py
@@ -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:
diff --git a/static/js/infoView.t_for_time.js b/static/js/infoView.t_for_time.js
index d763fe0..7a87c3d 100644
--- a/static/js/infoView.t_for_time.js
+++ b/static/js/infoView.t_for_time.js
@@ -574,11 +574,13 @@ 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(
- ` ${item.type[0]}`
+ ` ${type}`
)
}
})
+ $element.append(`[all]`)
pandora.createLinks($element)
})
}