瀏覽代碼

Merge pull request #1896 from MediaBrowser/dev

Dev
Luke 9 年之前
父節點
當前提交
1f037779d7
共有 2 個文件被更改,包括 7 次插入6 次删除
  1. 2 1
      MediaBrowser.Api/TvShowsService.cs
  2. 5 5
      MediaBrowser.Server.Implementations/TV/TVSeriesManager.cs

+ 2 - 1
MediaBrowser.Api/TvShowsService.cs

@@ -327,7 +327,8 @@ namespace MediaBrowser.Api
                 MinPremiereDate = minPremiereDate,
                 StartIndex = request.StartIndex,
                 Limit = request.Limit,
-                ParentId = parentIdGuid
+                ParentId = parentIdGuid,
+                Recursive = true
 
             }).ToList();
 

+ 5 - 5
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,11 @@ namespace MediaBrowser.Server.Implementations.TV
                 IncludeItemTypes = new[] { typeof(Series).Name },
                 SortOrder = SortOrder.Ascending,
                 PresentationUniqueKey = presentationUniqueKey,
-                Limit = limit
+                Limit = limit,
+                ParentId = parentIdGuid,
+                Recursive = true
 
-            }, parentIds).Cast<Series>();
+            }).Cast<Series>();
 
             // Avoid implicitly captured closure
             var episodes = GetNextUpEpisodes(request, user, items);