work around invalid directors

This commit is contained in:
j 2025-01-24 14:55:58 +05:30
parent e5339fd297
commit 85b88c4dd6

View file

@ -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)
? ' (' + (