diff options
| author | Cody Robibero <cody@robibe.ro> | 2023-02-23 07:04:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-02-23 07:04:44 -0700 |
| commit | ecb5c48538fb46b4aab744d165bd525bd8a53cd3 (patch) | |
| tree | f2fedbedf3556cc1c3c1036ea14fd373f52c15d1 /Jellyfin.Api/Controllers/ItemsController.cs | |
| parent | eb3d187f27c34112689d37c50a1f734835a33ef3 (diff) | |
| parent | 6300d01fcceba56932741251443f5b2aa4f76de2 (diff) | |
Merge pull request #8526 from Shadowghost/rating-overhaul
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ItemsController.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index 728e62810..377526729 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -411,6 +411,13 @@ public class ItemsController : BaseJellyfinApiController query.SeriesStatuses = seriesStatus; } + // Exclude Blocked Unrated Items + var blockedUnratedItems = user?.GetPreferenceValues<UnratedItem>(PreferenceKind.BlockUnratedItems); + if (blockedUnratedItems is not null) + { + query.BlockUnratedItems = blockedUnratedItems; + } + // ExcludeLocationTypes if (excludeLocationTypes.Any(t => t == LocationType.Virtual)) { |
