From a678037eec2822fd95c28d268c93dabb2f3770d2 Mon Sep 17 00:00:00 2001 From: dinki Date: Tue, 2 Jul 2019 15:37:07 -0500 Subject: [PATCH] Fixes On Now section so items are shown --- src/components/homesections/homesections.js | 31 +++++++++------------ 1 file changed, 13 insertions(+), 18 deletions(-) diff --git a/src/components/homesections/homesections.js b/src/components/homesections/homesections.js index ba7d827d93..956901b629 100644 --- a/src/components/homesections/homesections.js +++ b/src/components/homesections/homesections.js @@ -629,23 +629,18 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la function getOnNowItemsHtml(items) { var cardLayout = false; return cardBuilder.getCardsHtml({ - items: items, - preferThumb: 'auto', - inheritThumb: false, - shape: (enableScrollX() ? 'autooverflow' : 'auto'), - showParentTitleOrTitle: true, - showTitle: true, - centerText: true, - coverImage: true, - overlayText: false, - allowBottomPadding: !enableScrollX(), - showAirTime: true, - showChannelName: false, - showAirDateTime: false, - showAirEndTime: true, - defaultShape: getThumbShape(), - lines: 3, - overlayPlayButton: true + items: items, + preferThumb: true, + shape: getThumbShape(), + overlayText: false, + showTitle: true, + showParentTitle: true, + lazy: true, + overlayPlayButton: true, + context: 'home', + centerText: !cardLayout, + allowBottomPadding: !enableScrollX(), + cardLayout: cardLayout }); } @@ -655,7 +650,7 @@ define(['connectionManager', 'cardBuilder', 'appSettings', 'dom', 'apphost', 'la } var userId = user.Id; - apiClient.getLiveTvRecommendedPrograms({ + return apiClient.getLiveTvRecommendedPrograms({ userId: apiClient.getCurrentUserId(), IsAiring: true, limit: 1,