diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-30 15:10:12 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2016-06-30 15:10:12 -0400 |
| commit | a53b062b229e4ff72f84ab2072a834bfc591e033 (patch) | |
| tree | bdd78cca9f4317fe8f1dc05c66d8f78f9f0cc083 | |
| parent | 1dfe694a770586ab37ddd57c9f59d6e87d34c463 (diff) | |
update nextup query
| -rw-r--r-- | MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs b/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs index ba6534a7c..2e1d2fc2c 100644 --- a/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs +++ b/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs @@ -32,9 +32,7 @@ namespace MediaBrowser.Server.Implementations.TV throw new ArgumentException("User not found"); } - var parentIds = string.IsNullOrEmpty(request.ParentId) - ? new string[] { } - : new[] { request.ParentId }; + var parentIdGuid = string.IsNullOrWhiteSpace(request.ParentId) ? (Guid?)null : new Guid(request.ParentId); string presentationUniqueKey = null; int? limit = null; @@ -54,9 +52,10 @@ namespace MediaBrowser.Server.Implementations.TV IncludeItemTypes = new[] { typeof(Series).Name }, SortOrder = SortOrder.Ascending, PresentationUniqueKey = presentationUniqueKey, - Limit = limit + Limit = limit, + ParentId = parentIdGuid - }, parentIds).Cast<Series>(); + }).Cast<Series>(); // Avoid implicitly captured closure var episodes = GetNextUpEpisodes(request, user, items); |
