Merge pull request #2428 from acvigue/patch-1

Fix: prevent some backdrops from showing on homepage
This commit is contained in:
Bill Thornton
2021-04-07 16:55:59 -04:00
committed by GitHub
+2 -1
View File
@@ -26,7 +26,8 @@ function getBackdropItemIds(apiClient, userId, types, parentId) {
IncludeItemTypes: types,
ImageTypes: 'Backdrop',
ParentId: parentId,
EnableTotalRecordCount: false
EnableTotalRecordCount: false,
MaxOfficialRating: parentId ? '' : 'PG-13'
};
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
const images = result.Items.map(function (i) {