From 0ad069cc61864311b53cb328c3901f0ccbcdefac Mon Sep 17 00:00:00 2001 From: Aiden Vigue Date: Thu, 18 Feb 2021 15:14:21 -0500 Subject: [PATCH] prevent some backdrops from showing on homepage prevents backdrops from items with an OfficialRating > TV-MA from showing on homepage. --- src/scripts/autoBackdrops.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/scripts/autoBackdrops.js b/src/scripts/autoBackdrops.js index ccddf326a..e2c1e2264 100644 --- a/src/scripts/autoBackdrops.js +++ b/src/scripts/autoBackdrops.js @@ -26,7 +26,8 @@ function getBackdropItemIds(apiClient, userId, types, parentId) { IncludeItemTypes: types, ImageTypes: 'Backdrop', ParentId: parentId, - EnableTotalRecordCount: false + EnableTotalRecordCount: false, + MaxOfficialRating: parentId === '' ? 'TV-MA' : '' }; return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) { const images = result.Items.map(function (i) {