mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
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) {
|
function renderMoreFromItems(page, item) {
|
||||||
|
|
||||||
var moreFromSection = page.querySelector('#moreFromSection');
|
var moreFromSection = page.querySelector('#moreFromSection');
|
||||||
|
|
||||||
if (!moreFromSection) {
|
if (!moreFromSection) {
|
||||||
|
@ -736,14 +736,14 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
ApiClient.getItems(Dashboard.getCurrentUserId(), {
|
||||||
|
|
||||||
IncludeItemTypes: "MusicAlbum",
|
IncludeItemTypes: "MusicAlbum",
|
||||||
ArtistIds: item.AlbumArtists[0].Id,
|
ArtistIds: item.AlbumArtists[0].Id,
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
ExcludeItemIds: item.Id
|
ExcludeItemIds: item.Id
|
||||||
|
|
||||||
}).then(function(result) {
|
}).then(function (result) {
|
||||||
|
|
||||||
if (!result.Items.length) {
|
if (!result.Items.length) {
|
||||||
moreFromSection.classList.add('hide');
|
moreFromSection.classList.add('hide');
|
||||||
return;
|
return;
|
||||||
|
@ -803,6 +803,10 @@
|
||||||
fields: "PrimaryImageAspectRatio,UserData,SyncInfo,CanDelete"
|
fields: "PrimaryImageAspectRatio,UserData,SyncInfo,CanDelete"
|
||||||
};
|
};
|
||||||
|
|
||||||
|
if (item.Type == 'MusicAlbum' && item.AlbumArtists && item.AlbumArtists.length) {
|
||||||
|
options.ExcludeArtistNames = item.AlbumArtists[0].Name;
|
||||||
|
}
|
||||||
|
|
||||||
if (enableScrollX()) {
|
if (enableScrollX()) {
|
||||||
options.limit = 12;
|
options.limit = 12;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue