The Free Software Media System - Server Backend & API
update nextup query
Luke Pulverentia53b062b229e
diff --git a/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs b/MediaBrowser.Server.Implementations/TV/TVSeriesManager.csindex ba6534a7c3..2e1d2fc2c8 100644--- a/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs+++ b/MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs@@ -32,9 +32,7 @@ namespace MediaBrowser.Server.Implementations.TVthrow 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.TVIncludeItemTypes = new[] { typeof(Series).Name },SortOrder = SortOrder.Ascending,PresentationUniqueKey = presentationUniqueKey,- Limit = limit+ Limit = limit,+ ParentId = parentIdGuid- }, parentIds).Cast<Series>();+ }).Cast<Series>();// Avoid implicitly captured closurevar episodes = GetNextUpEpisodes(request, user, items);