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:
parent
7e1adc104b
commit
0ad069cc61
1 changed files with 2 additions and 1 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue