1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update artist display

This commit is contained in:
Luke Pulverenti 2017-01-09 14:04:40 -05:00
parent 7b22758cec
commit 23c8b56c44

View file

@ -316,17 +316,21 @@ define(['itemHelper', 'mediaInfo', 'indicators', 'connectionManager', 'layoutMan
textlines.push(displayName); textlines.push(displayName);
} }
if (options.artist !== false && (options.artist === true || item.AlbumArtist !== options.containerAlbumArtist)) { if (item.IsFolder) {
if (options.artist !== false) {
if (item.ArtistItems && item.Type !== 'MusicAlbum') { if (item.AlbumArtist && item.Type === 'MusicAlbum') {
textlines.push(item.ArtistItems.map(function (a) { textlines.push(item.AlbumArtist);
return a.Name; }
}).join(', '));
} }
} else {
if (options.artist !== false && (options.artist === true || (item.Artists || [])[0] !== options.containerAlbumArtist)) {
else if (item.AlbumArtist && item.Type === 'MusicAlbum') { if (item.ArtistItems && item.Type !== 'MusicAlbum') {
textlines.push(item.AlbumArtist); textlines.push(item.ArtistItems.map(function (a) {
return a.Name;
}).join(', '));
}
} }
} }