Merge pull request #2428 from acvigue/patch-1
Fix: prevent some backdrops from showing on homepage
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user