diff options
| author | Cody Robibero <cody@robibe.ro> | 2026-08-05 18:39:55 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2026-08-05 18:39:55 -0400 |
| commit | 17b0453cfb4176157b234795ba5ac94fdc1c86a0 (patch) | |
| tree | 7661313c2238c758c620ea5272c1fd0404eb295b /MediaBrowser.Controller/Entities/InternalItemsQuery.cs | |
| parent | d5a5b56484103e20bf36c558439048aa8f85c259 (diff) | |
| parent | 61e75599b30cd346eab743529271ab3e002f0474 (diff) | |
Merge pull request #17466 from Shadowghost/fix-byname-queries
Improve People deduplication, fix search and restrict ItemByName responses
Diffstat (limited to 'MediaBrowser.Controller/Entities/InternalItemsQuery.cs')
| -rw-r--r-- | MediaBrowser.Controller/Entities/InternalItemsQuery.cs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs index 3b1f6a961f..e85f86b72f 100644 --- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs +++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs @@ -496,6 +496,12 @@ namespace MediaBrowser.Controller.Entities public IReadOnlyList<string> SubtitleLanguages { get; set; } + /// <summary> + /// Gets a value indicating whether some content in the library is hidden from <see cref="User"/>. + /// Filters that only exist to hide content can be skipped entirely when this is false. + /// </summary> + public bool UserHasContentRestrictions { get; private set; } + public void SetUser(User user) { var maxRating = user.MaxParentalRatingScore; @@ -519,6 +525,7 @@ namespace MediaBrowser.Controller.Entities .Select(tag => tag.RemoveDiacritics().ToLowerInvariant()) .ToArray(); + UserHasContentRestrictions = user.HasContentRestrictions(); User = user; } |
