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

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
commit 1ffb9d5fca
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 ? '' : 'PG-13'
};
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
const images = result.Items.map(function (i) {