mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
show songs on ibn page
This commit is contained in:
parent
885d82d544
commit
e48c0f781d
2 changed files with 19 additions and 8 deletions
|
@ -393,7 +393,7 @@
|
||||||
SortOrder: "Ascending",
|
SortOrder: "Ascending",
|
||||||
IncludeItemTypes: "",
|
IncludeItemTypes: "",
|
||||||
Recursive: true,
|
Recursive: true,
|
||||||
Fields: "UserData,DisplayMediaType,ItemCounts,DateCreated,AudioInfo,SeriesInfo",
|
Fields: "UserData,DisplayMediaType,ItemCounts,DateCreated,AudioInfo,SeriesInfo,ParentId",
|
||||||
Limit: LibraryBrowser.getDefaultPageSize(),
|
Limit: LibraryBrowser.getDefaultPageSize(),
|
||||||
StartIndex: 0
|
StartIndex: 0
|
||||||
};
|
};
|
||||||
|
@ -413,11 +413,22 @@
|
||||||
$('.viewSettings', page).hide();
|
$('.viewSettings', page).hide();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (query.IncludeItemTypes == "Audio") {
|
||||||
|
|
||||||
|
html += LibraryBrowser.getSongTableHtml(result.Items, {
|
||||||
|
showAlbum: true,
|
||||||
|
showArtist: true
|
||||||
|
});
|
||||||
|
|
||||||
|
|
||||||
|
} else {
|
||||||
|
|
||||||
html += LibraryBrowser.getPosterDetailViewHtml({
|
html += LibraryBrowser.getPosterDetailViewHtml({
|
||||||
items: result.Items,
|
items: result.Items,
|
||||||
preferBackdrop: shape == "backdrop",
|
preferBackdrop: shape == "backdrop",
|
||||||
shape: shape
|
shape: shape
|
||||||
});
|
});
|
||||||
|
}
|
||||||
|
|
||||||
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
|
html += LibraryBrowser.getPagingHtml(query, result.TotalRecordCount);
|
||||||
|
|
||||||
|
|
|
@ -252,7 +252,7 @@
|
||||||
if (item.Album && item.ParentId) {
|
if (item.Album && item.ParentId) {
|
||||||
html += '<td><a href="itemdetails.html?id=' + item.ParentId + '">' + item.Album + '</a></td>';
|
html += '<td><a href="itemdetails.html?id=' + item.ParentId + '">' + item.Album + '</a></td>';
|
||||||
} else {
|
} else {
|
||||||
html += '<td></td>';
|
html += '<td>' + (item.Album || '') + '</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -264,7 +264,7 @@
|
||||||
|
|
||||||
html += '<td><a href="itembynamedetails.html?context=music&artist=' + ApiClient.encodeName(artist) + '">' + artist + '</a></td>';
|
html += '<td><a href="itembynamedetails.html?context=music&artist=' + ApiClient.encodeName(artist) + '">' + artist + '</a></td>';
|
||||||
} else {
|
} else {
|
||||||
html += '<td></td>';
|
html += '<td>' + (artist || '') + '</td>';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue