commit
68c511581a
|
@ -112,6 +112,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
public string[] TopParentIds { get; set; }
|
||||
|
||||
public LocationType[] ExcludeLocationTypes { get; set; }
|
||||
public string[] PresetViews { get; set; }
|
||||
|
||||
public InternalItemsQuery()
|
||||
{
|
||||
|
@ -137,6 +138,7 @@ namespace MediaBrowser.Controller.Entities
|
|||
TopParentIds = new string[] { };
|
||||
ExcludeTags = new string[] { };
|
||||
ExcludeLocationTypes = new LocationType[] { };
|
||||
PresetViews = new string[] { };
|
||||
}
|
||||
|
||||
public InternalItemsQuery(User user)
|
||||
|
|
|
@ -30,7 +30,8 @@ namespace MediaBrowser.Controller.Entities
|
|||
|
||||
var result = await UserViewManager.GetUserViews(new UserViewQuery
|
||||
{
|
||||
UserId = query.User.Id.ToString("N")
|
||||
UserId = query.User.Id.ToString("N"),
|
||||
PresetViews = query.PresetViews
|
||||
|
||||
}, CancellationToken.None).ConfigureAwait(false);
|
||||
|
||||
|
|
|
@ -460,7 +460,8 @@ namespace MediaBrowser.Dlna.ContentDirectory
|
|||
SortBy = sortOrders.ToArray(),
|
||||
SortOrder = sort.SortOrder,
|
||||
User = user,
|
||||
Filter = FilterUnsupportedContent
|
||||
Filter = FilterUnsupportedContent,
|
||||
PresetViews = new[] { CollectionType.Movies, CollectionType.TvShows, CollectionType.Music }
|
||||
|
||||
}).ConfigureAwait(false);
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user