diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-11-15 17:30:47 -0500 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2015-11-15 17:30:47 -0500 |
| commit | 72a0c2afeba7b2af3f8eff37f551b28740554210 (patch) | |
| tree | bc2b1c7afead83cb879e45b4ae6587a7b395dac4 /MediaBrowser.Controller/Entities/InternalItemsQuery.cs | |
| parent | a45831cdcfb5f78c4d01ad19a1c5eb08f86a8761 (diff) | |
update playlist query
Diffstat (limited to 'MediaBrowser.Controller/Entities/InternalItemsQuery.cs')
| -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 682cec69d..96cd305a6 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; } } |
