mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fixes On Now section so items are shown
This commit is contained in:
parent
5f80642193
commit
a678037eec
1 changed files with 13 additions and 18 deletions
|
@ -629,23 +629,18 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
|
||||||
function getOnNowItemsHtml(items) {
|
function getOnNowItemsHtml(items) {
|
||||||
var cardLayout = false;
|
var cardLayout = false;
|
||||||
return cardBuilder.getCardsHtml({
|
return cardBuilder.getCardsHtml({
|
||||||
items: items,
|
items: items,
|
||||||
preferThumb: 'auto',
|
preferThumb: true,
|
||||||
inheritThumb: false,
|
shape: getThumbShape(),
|
||||||
shape: (enableScrollX() ? 'autooverflow' : 'auto'),
|
overlayText: false,
|
||||||
showParentTitleOrTitle: true,
|
showTitle: true,
|
||||||
showTitle: true,
|
showParentTitle: true,
|
||||||
centerText: true,
|
lazy: true,
|
||||||
coverImage: true,
|
overlayPlayButton: true,
|
||||||
overlayText: false,
|
context: 'home',
|
||||||
allowBottomPadding: !enableScrollX(),
|
centerText: !cardLayout,
|
||||||
showAirTime: true,
|
allowBottomPadding: !enableScrollX(),
|
||||||
showChannelName: false,
|
cardLayout: cardLayout
|
||||||
showAirDateTime: false,
|
|
||||||
showAirEndTime: true,
|
|
||||||
defaultShape: getThumbShape(),
|
|
||||||
lines: 3,
|
|
||||||
overlayPlayButton: true
|
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -655,7 +650,7 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la
|
||||||
}
|
}
|
||||||
|
|
||||||
var userId = user.Id;
|
var userId = user.Id;
|
||||||
apiClient.getLiveTvRecommendedPrograms({
|
return apiClient.getLiveTvRecommendedPrograms({
|
||||||
userId: apiClient.getCurrentUserId(),
|
userId: apiClient.getCurrentUserId(),
|
||||||
IsAiring: true,
|
IsAiring: true,
|
||||||
limit: 1,
|
limit: 1,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue