diff options
Diffstat (limited to 'MediaBrowser.Controller')
| -rw-r--r-- | MediaBrowser.Controller/Entities/InternalItemsQuery.cs | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs index 682cec69df..96cd305a6e 100644 --- a/MediaBrowser.Controller/Entities/InternalItemsQuery.cs +++ b/MediaBrowser.Controller/Entities/InternalItemsQuery.cs @@ -31,6 +31,7 @@ namespace MediaBrowser.Controller.Entities public string[] MediaTypes { get; set; } public string[] IncludeItemTypes { get; set; } public string[] ExcludeItemTypes { get; set; } + public string[] ExcludeTags { get; set; } public string[] Genres { get; set; } public bool? IsMissing { get; set; } @@ -133,6 +134,7 @@ namespace MediaBrowser.Controller.Entities ItemIds = new string[] { }; AncestorIds = new string[] { }; TopParentIds = new string[] { }; + ExcludeTags = new string[] { }; ExcludeLocationTypes = new LocationType[] { }; } @@ -144,6 +146,13 @@ namespace MediaBrowser.Controller.Entities var policy = user.Policy; MaxParentalRating = policy.MaxParentalRating; + if (policy.MaxParentalRating.HasValue) + { + BlockUnratedItems = policy.BlockUnratedItems; + } + + ExcludeTags = policy.BlockedTags; + User = user; } } |
