more places where year might not exist, fixes #2778
This commit is contained in:
parent
09c3c4b959
commit
380185efd4
2 changed files with 10 additions and 4 deletions
|
|
@ -190,7 +190,7 @@ pandora.ui.list = function() {
|
|||
) + size + '.jpg?' + data.modified),
|
||||
format, info, sortKey = sort[0].key;
|
||||
if (['title', 'director'].indexOf(sortKey) > -1) {
|
||||
info = data['year'];
|
||||
info = data['year'] || data['date'] || '';
|
||||
} else {
|
||||
format = pandora.getSortKeyData(sortKey).format;
|
||||
if (format) {
|
||||
|
|
@ -277,7 +277,7 @@ pandora.ui.list = function() {
|
|||
) + size + '.jpg?' + data.modified),
|
||||
format, info, sortKey = sort[0].key;
|
||||
if (['title', 'director'].indexOf(sortKey) > -1) {
|
||||
info = data['year'];
|
||||
info = data['year'] || data['date'] || '';
|
||||
} else {
|
||||
format = pandora.getSortKeyData(sortKey).format;
|
||||
if (format) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue