update more from/similar
This commit is contained in:
parent
cec6b66c27
commit
9272519d84
1 changed files with 8 additions and 4 deletions
|
@ -723,7 +723,7 @@
|
|||
}
|
||||
|
||||
function renderMoreFromItems(page, item) {
|
||||
|
||||
|
||||
var moreFromSection = page.querySelector('#moreFromSection');
|
||||
|
||||
if (!moreFromSection) {
|
||||
|
@ -736,14 +736,14 @@
|
|||
}
|
||||
|
||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||
|
||||
|
||||
IncludeItemTypes: "MusicAlbum",
|
||||
ArtistIds: item.AlbumArtists[0].Id,
|
||||
Recursive: true,
|
||||
ExcludeItemIds: item.Id
|
||||
|
||||
}).then(function(result) {
|
||||
|
||||
}).then(function (result) {
|
||||
|
||||
if (!result.Items.length) {
|
||||
moreFromSection.classList.add('hide');
|
||||
return;
|
||||
|
@ -803,6 +803,10 @@
|
|||
fields: "PrimaryImageAspectRatio,UserData,SyncInfo,CanDelete"
|
||||
};
|
||||
|
||||
if (item.Type == 'MusicAlbum' && item.AlbumArtists && item.AlbumArtists.length) {
|
||||
options.ExcludeArtistNames = item.AlbumArtists[0].Name;
|
||||
}
|
||||
|
||||
if (enableScrollX()) {
|
||||
options.limit = 12;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue