From fa1254e715c20a426e2ac419f459bb964fa9c36c Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Mon, 16 Feb 2015 11:47:30 -0500 Subject: event fire fix --- MediaBrowser.Api/TvShowsService.cs | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'MediaBrowser.Api/TvShowsService.cs') diff --git a/MediaBrowser.Api/TvShowsService.cs b/MediaBrowser.Api/TvShowsService.cs index 13ec1db3c..121ef1ce6 100644 --- a/MediaBrowser.Api/TvShowsService.cs +++ b/MediaBrowser.Api/TvShowsService.cs @@ -157,6 +157,9 @@ namespace MediaBrowser.Api [ApiMember(Name = "AdjacentTo", Description = "Optional. Return items that are siblings of a supplied item.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")] public string AdjacentTo { get; set; } + [ApiMember(Name = "StartItemId", Description = "Optional. Skip through the list until a given item is found.", IsRequired = false, DataType = "string", ParameterType = "query", Verb = "GET")] + public string StartItemId { get; set; } + /// /// Skips over a given number of items within the results. Use for paging. /// @@ -475,6 +478,11 @@ namespace MediaBrowser.Api episodes = episodes.Where(i => i.IsVirtualUnaired == val); } + if (!string.IsNullOrWhiteSpace(request.StartItemId)) + { + episodes = episodes.SkipWhile(i => !string.Equals(i.Id.ToString("N"), request.StartItemId, StringComparison.OrdinalIgnoreCase)); + } + IEnumerable returnItems = episodes; // This must be the last filter -- cgit v1.2.3