mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update channel view
This commit is contained in:
parent
0b7e7078bd
commit
cb3b17ee4a
9 changed files with 52 additions and 85 deletions
|
@ -12,8 +12,9 @@
|
|||
query: {
|
||||
SortBy: "SortName",
|
||||
SortOrder: "Ascending",
|
||||
IncludeItemTypes: "Trailer",
|
||||
Recursive: true,
|
||||
Fields: "PrimaryImageAspectRatio,SortName,SyncInfo",
|
||||
Fields: "PrimaryImageAspectRatio,SortName,MediaSourceCount,SyncInfo",
|
||||
ImageTypeLimit: 1,
|
||||
EnableImageTypes: "Primary,Backdrop,Banner,Thumb",
|
||||
StartIndex: 0,
|
||||
|
@ -39,9 +40,9 @@
|
|||
Dashboard.showLoadingMsg();
|
||||
|
||||
var query = getQuery(page);
|
||||
query.UserId = Dashboard.getCurrentUserId();
|
||||
var userId = Dashboard.getCurrentUserId();
|
||||
|
||||
ApiClient.getJSON(ApiClient.getUrl('Trailers', query)).then(function (result) {
|
||||
ApiClient.getItems(userId, query).then(function (result) {
|
||||
|
||||
// Scroll back up so they can see the results from the beginning
|
||||
window.scrollTo(0, 0);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue