From b07a1e67c26a595b906dccc135dfff62d9883e65 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Fri, 13 Sep 2013 16:45:27 -0400 Subject: [PATCH] Added episodes page --- MediaBrowser.Api/UserLibrary/ItemsService.cs | 27 +++++++++ MediaBrowser.Model/Querying/ItemQuery.cs | 24 +++++++- MediaBrowser.Model/Querying/ItemSortBy.cs | 1 + ...MediaBrowser.Server.Implementations.csproj | 1 + .../Sorting/SeriesSortNameComparer.cs | 57 +++++++++++++++++++ .../Api/DashboardService.cs | 2 +- .../MediaBrowser.WebDashboard.csproj | 8 +-- 7 files changed, 112 insertions(+), 8 deletions(-) create mode 100644 MediaBrowser.Server.Implementations/Sorting/SeriesSortNameComparer.cs diff --git a/MediaBrowser.Api/UserLibrary/ItemsService.cs b/MediaBrowser.Api/UserLibrary/ItemsService.cs index 84a0584469..879df7e3ce 100644 --- a/MediaBrowser.Api/UserLibrary/ItemsService.cs +++ b/MediaBrowser.Api/UserLibrary/ItemsService.cs @@ -164,6 +164,9 @@ namespace MediaBrowser.Api.UserLibrary [ApiMember(Name = "MinIndexNumber", Description = "Optional filter by minimum index number.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")] public int? MinIndexNumber { get; set; } + [ApiMember(Name = "ParentIndexNumber", Description = "Optional filter by parent index number.", IsRequired = false, DataType = "int", ParameterType = "query", Verb = "GET")] + public int? ParentIndexNumber { get; set; } + [ApiMember(Name = "HasParentalRating", Description = "Optional filter by items that have or do not have a parental rating", IsRequired = false, DataType = "bool", ParameterType = "query", Verb = "GET")] public bool? HasParentalRating { get; set; } @@ -733,6 +736,30 @@ namespace MediaBrowser.Api.UserLibrary items = items.OfType