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

add new image params

This commit is contained in:
Luke Pulverenti 2014-11-30 14:01:33 -05:00
parent c393e5345d
commit bdb44814f1
24 changed files with 85 additions and 42 deletions

View file

@ -54,9 +54,11 @@
Filters: "IsResumable",
Limit: screenWidth >= 1920 ? 10 : (screenWidth >= 1600 ? 8 : (screenWidth >= 1200 ? 6 : 3)),
Recursive: true,
Fields: "PrimaryImageAspectRatio",
Fields: "PrimaryImageAspectRatio,MediaSourceCount",
CollapseBoxSetItems: false,
ParentId: parentId
ParentId: parentId,
ImageTypeLimit: 1,
EnableImageTypes: "Primary,Backdrop,Banner,Logo,Thumb"
};
ApiClient.getItems(Dashboard.getCurrentUserId(), options).done(function (result) {
@ -84,7 +86,9 @@
userId: Dashboard.getCurrentUserId(),
categoryLimit: screenWidth >= 1200 ? 4 : 3,
ItemLimit: screenWidth >= 1920 ? 10 : (screenWidth >= 1600 ? 7 : (screenWidth >= 1200 ? 7 : 7)),
Fields: "PrimaryImageAspectRatio"
Fields: "PrimaryImageAspectRatio,MediaSourceCount",
ImageTypeLimit: 1,
EnableImageTypes: "Primary,Backdrop,Banner,Logo,Thumb"
});
ApiClient.getJSON(url).done(function (recommendations) {