also fallback to date in context browser, fixes #2777

This commit is contained in:
j 2015-05-19 14:47:47 +05:30
parent 47a3a24a7d
commit 09c3c4b959

View file

@ -84,7 +84,7 @@ pandora.ui.browser = function() {
) + '128.jpg?' + data.modified),
format, info, sortKey = sort[0].key;
if (['title', 'director', 'random'].indexOf(sortKey) > -1) {
info = data['year'];
info = data['year'] || data['date'] || '';
} else {
// fixme: this is duplicated many times
format = pandora.getSortKeyData(sortKey).format;