1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

prevent some backdrops from showing on homepage

prevents backdrops from items with an OfficialRating > TV-MA from showing on homepage.
This commit is contained in:
Aiden Vigue 2021-02-18 15:14:21 -05:00 committed by GitHub
parent 7e1adc104b
commit 0ad069cc61
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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) {