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:
commit
1ffb9d5fca
1 changed files with 2 additions and 1 deletions
|
@ -26,7 +26,8 @@ function getBackdropItemIds(apiClient, userId, types, parentId) {
|
||||||
IncludeItemTypes: types,
|
IncludeItemTypes: types,
|
||||||
ImageTypes: 'Backdrop',
|
ImageTypes: 'Backdrop',
|
||||||
ParentId: parentId,
|
ParentId: parentId,
|
||||||
EnableTotalRecordCount: false
|
EnableTotalRecordCount: false,
|
||||||
|
MaxOfficialRating: parentId ? '' : 'PG-13'
|
||||||
};
|
};
|
||||||
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
|
return apiClient.getItems(apiClient.getCurrentUserId(), options).then(function (result) {
|
||||||
const images = result.Items.map(function (i) {
|
const images = result.Items.map(function (i) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue