no director is empty array, not falsy

This commit is contained in:
rolux 2013-08-03 17:30:24 +00:00
parent d5e36b6296
commit d73dc8eb52

View file

@ -824,8 +824,12 @@ pandora.getClipVideos = function(clip, resolution) {
if (itemData) {
itemTitles[pandora.user.ui.item] = Ox.decodeHTMLEntities(
(itemData.title || Ox._('Untitled')) + (
itemData.director || itemData.year
? ' (' + (itemData.director || [Ox._('Unknown Director')]).join(', ') + ')'
Ox.len(itemData.director) || itemData.year
? ' (' + (
Ox.len(itemData.director)
? itemData.director
: [Ox._('Unknown Director')]
).join(', ') + ')'
: ''
) + (itemData.year ? ' ' + itemData.year : '')
);