mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update recording defaults
This commit is contained in:
parent
14bce4eaf7
commit
f8eb80550a
10 changed files with 51 additions and 30 deletions
|
@ -98,7 +98,10 @@
|
|||
|
||||
}).then(function (result) {
|
||||
|
||||
renderItems(page, result.Items, 'activeProgramItems', 'play');
|
||||
renderItems(page, result.Items, 'activeProgramItems', 'play', {
|
||||
showAirDateTime: false,
|
||||
showAirEndTime: true
|
||||
});
|
||||
Dashboard.hideLoadingMsg();
|
||||
});
|
||||
}
|
||||
|
@ -151,7 +154,10 @@
|
|||
|
||||
}).then(function (result) {
|
||||
|
||||
renderItems(page, result.Items, 'upcomingTvMovieItems', null, getPortraitShape());
|
||||
renderItems(page, result.Items, 'upcomingTvMovieItems', null, {
|
||||
shape: getPortraitShape(),
|
||||
preferThumb: null
|
||||
});
|
||||
});
|
||||
|
||||
ApiClient.getLiveTvRecommendedPrograms({
|
||||
|
@ -187,15 +193,17 @@
|
|||
});
|
||||
}
|
||||
|
||||
function renderItems(page, items, sectionClass, overlayButton, shape) {
|
||||
function renderItems(page, items, sectionClass, overlayButton, cardOptions) {
|
||||
|
||||
var supportsImageAnalysis = appHost.supports('imageanalysis');
|
||||
|
||||
var html = cardBuilder.getCardsHtml({
|
||||
cardOptions = cardOptions || {};
|
||||
|
||||
var html = cardBuilder.getCardsHtml(Object.assign({
|
||||
items: items,
|
||||
preferThumb: !shape,
|
||||
preferThumb: true,
|
||||
inheritThumb: false,
|
||||
shape: shape || (enableScrollX() ? 'overflowBackdrop' : 'backdrop'),
|
||||
shape: (enableScrollX() ? 'overflowBackdrop' : 'backdrop'),
|
||||
showParentTitleOrTitle: true,
|
||||
showTitle: false,
|
||||
centerText: !supportsImageAnalysis,
|
||||
|
@ -210,7 +218,8 @@
|
|||
showChannelName: true,
|
||||
vibrant: true,
|
||||
cardLayout: supportsImageAnalysis
|
||||
});
|
||||
|
||||
}, cardOptions));
|
||||
|
||||
var elem = page.querySelector('.' + sectionClass);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue