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

avoid buffering http responses

This commit is contained in:
Luke Pulverenti 2016-10-06 14:55:01 -04:00
parent 86a369b500
commit 170b720d0b
22 changed files with 102 additions and 42 deletions

View file

@ -1,4 +1,4 @@
define(['datetime', 'cardBuilder', 'emby-itemscontainer', 'scrollStyles'], function (datetime, cardBuilder) {
define(['datetime', 'cardBuilder', 'apphost', 'emby-itemscontainer', 'scrollStyles'], function (datetime, cardBuilder, appHost) {
function getUpcomingPromise() {
@ -108,6 +108,8 @@
html += '<div is="emby-itemscontainer" class="itemsContainer vertical-wrap">';
}
var supportsImageAnalysis = appHost.supports('imageanalysis');
html += cardBuilder.getCardsHtml({
items: group.items,
showLocationTypeIndicator: false,
@ -118,9 +120,11 @@
showDetailsMenu: true,
centerText: true,
context: 'home-upcoming',
overlayMoreButton: true,
overlayMoreButton: !supportsImageAnalysis,
showParentTitle: true,
allowBottomPadding: allowBottomPadding
allowBottomPadding: allowBottomPadding,
cardLayout: supportsImageAnalysis,
vibrant: supportsImageAnalysis
});
html += '</div>';