1
0
Fork 0
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:
dinki 2019-07-02 15:37:07 -05:00
parent 5f80642193
commit a678037eec

View file

@ -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,