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

update live tv hls params

This commit is contained in:
Luke Pulverenti 2016-11-16 15:52:17 -05:00
parent dfbe16f07e
commit 6196c5cbb4
7 changed files with 31 additions and 36 deletions

View file

@ -448,9 +448,15 @@
var screenWidth = dom.getWindowSize().innerWidth;
var limit = screenWidth >= 1920 ? 8 : (screenWidth >= 1600 ? 8 : (screenWidth >= 1200 ? 9 : 6));
var limit;
if (!enableScrollX()) {
if (enableScrollX()) {
limit = 12;
} else {
limit = screenWidth >= 1920 ? 8 : (screenWidth >= 1600 ? 8 : (screenWidth >= 1200 ? 9 : 6));
limit = Math.min(limit, 5);
}
@ -481,6 +487,10 @@
} else {
html += '<div is="emby-itemscontainer" class="itemsContainer vertical-wrap">';
}
var supportsImageAnalysis = appHost.supports('imageanalysis');
var cardLayout = appHost.preferVisualCards;
html += cardBuilder.getCardsHtml({
items: result.Items,
preferThumb: true,
@ -492,8 +502,12 @@
showDetailsMenu: true,
overlayPlayButton: true,
context: 'home',
centerText: true,
allowBottomPadding: false
centerText: !cardLayout,
allowBottomPadding: false,
cardLayout: cardLayout,
showYear: true,
lines: 2,
vibrant: cardLayout && supportsImageAnalysis
});
html += '</div>';
}