|
@@ -46,9 +46,6 @@ namespace MediaBrowser.Api.UserLibrary
|
|
[ApiMember(Name = "PersonTypes", Description = "Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
|
[ApiMember(Name = "PersonTypes", Description = "Optional. If specified, along with Person, results will be filtered to include only those containing the specified person and PersonType. Allows multiple, comma-delimited", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")]
|
|
public string PersonTypes { get; set; }
|
|
public string PersonTypes { get; set; }
|
|
|
|
|
|
- [ApiMember(Name = "AllGenres", Description = "Optional. If specified, results will be filtered based on genre. This allows multiple, pipe delimeted.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET", AllowMultiple = true)]
|
|
|
|
- public string AllGenres { get; set; }
|
|
|
|
-
|
|
|
|
/// <summary>
|
|
/// <summary>
|
|
/// Limit results to items containing specific studios
|
|
/// Limit results to items containing specific studios
|
|
/// </summary>
|
|
/// </summary>
|
|
@@ -226,11 +223,6 @@ namespace MediaBrowser.Api.UserLibrary
|
|
[ApiMember(Name = "CollapseBoxSetItems", Description = "Whether or not to hide items behind their boxsets.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
|
|
[ApiMember(Name = "CollapseBoxSetItems", Description = "Whether or not to hide items behind their boxsets.", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")]
|
|
public bool? CollapseBoxSetItems { get; set; }
|
|
public bool? CollapseBoxSetItems { get; set; }
|
|
|
|
|
|
- public string[] GetAllGenres()
|
|
|
|
- {
|
|
|
|
- return (AllGenres ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
public string[] GetStudios()
|
|
public string[] GetStudios()
|
|
{
|
|
{
|
|
return (Studios ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
|
|
return (Studios ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
|
|
@@ -471,7 +463,6 @@ namespace MediaBrowser.Api.UserLibrary
|
|
Tags = request.GetTags(),
|
|
Tags = request.GetTags(),
|
|
OfficialRatings = request.GetOfficialRatings(),
|
|
OfficialRatings = request.GetOfficialRatings(),
|
|
Genres = request.GetGenres(),
|
|
Genres = request.GetGenres(),
|
|
- AllGenres = request.GetAllGenres(),
|
|
|
|
Studios = request.GetStudios(),
|
|
Studios = request.GetStudios(),
|
|
Person = request.Person,
|
|
Person = request.Person,
|
|
PersonTypes = request.GetPersonTypes(),
|
|
PersonTypes = request.GetPersonTypes(),
|
|
@@ -930,13 +921,6 @@ namespace MediaBrowser.Api.UserLibrary
|
|
return false;
|
|
return false;
|
|
}
|
|
}
|
|
|
|
|
|
- // Apply genre filter
|
|
|
|
- var allGenres = request.GetAllGenres();
|
|
|
|
- if (allGenres.Length > 0 && !allGenres.All(v => i.Genres.Contains(v, StringComparer.OrdinalIgnoreCase)))
|
|
|
|
- {
|
|
|
|
- return false;
|
|
|
|
- }
|
|
|
|
-
|
|
|
|
// Filter by VideoType
|
|
// Filter by VideoType
|
|
if (!string.IsNullOrEmpty(request.VideoTypes))
|
|
if (!string.IsNullOrEmpty(request.VideoTypes))
|
|
{
|
|
{
|