From 85b88c4dd630172e02872fd9b88bccc486878d1f Mon Sep 17 00:00:00 2001 From: j Date: Fri, 24 Jan 2025 14:55:58 +0530 Subject: [PATCH] work around invalid directors --- static/js/getItemTitle.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/static/js/getItemTitle.js b/static/js/getItemTitle.js index 286036c6..a13c8b83 100644 --- a/static/js/getItemTitle.js +++ b/static/js/getItemTitle.js @@ -1,6 +1,10 @@ 'use strict'; pandora.getItemTitle = function(itemData, includeYear) { + var director = itemData.director + if (!Ox.isArray(director)) { + director = [director] + } return (itemData.title || Ox._('Untitled')) + ( Ox.len(itemData.director) || (includeYear && itemData.year) ? ' (' + (