aboutsummaryrefslogtreecommitdiff
path: root/MediaBrowser.Api/UserLibrary/ItemsService.cs
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-13 11:54:20 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2015-03-13 11:54:20 -0400
commita92723fde3fc44410c782ee93d36c749ae8d6f82 (patch)
tree19a4730ca536d8a3bfe3b2404adef526b8ea4ae6 /MediaBrowser.Api/UserLibrary/ItemsService.cs
parent4309455c37c25eb7b4ab89920358d7cced1ebddc (diff)
add AlbumArtists to item dto's
Diffstat (limited to 'MediaBrowser.Api/UserLibrary/ItemsService.cs')
-rw-r--r--MediaBrowser.Api/UserLibrary/ItemsService.cs16
1 files changed, 0 insertions, 16 deletions
diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs
index 9b5ef3a98..0b636e93b 100644
--- a/MediaBrowser.Api/UserLibrary/ItemsService.cs
+++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs
@@ -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")]
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>
/// Limit results to items containing specific studios
/// </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")]
public bool? CollapseBoxSetItems { get; set; }
- public string[] GetAllGenres()
- {
- return (AllGenres ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
- }
-
public string[] GetStudios()
{
return (Studios ?? string.Empty).Split(new[] { '|' }, StringSplitOptions.RemoveEmptyEntries);
@@ -471,7 +463,6 @@ namespace MediaBrowser.Api.UserLibrary
Tags = request.GetTags(),
OfficialRatings = request.GetOfficialRatings(),
Genres = request.GetGenres(),
- AllGenres = request.GetAllGenres(),
Studios = request.GetStudios(),
Person = request.Person,
PersonTypes = request.GetPersonTypes(),
@@ -930,13 +921,6 @@ namespace MediaBrowser.Api.UserLibrary
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
if (!string.IsNullOrEmpty(request.VideoTypes))
{