瀏覽代碼

Fix similar items endpoint for movies and TV

David 4 年之前
父節點
當前提交
f4d1e33010
共有 1 個文件被更改,包括 0 次插入5 次删除
  1. 0 5
      Jellyfin.Api/Controllers/LibraryController.cs

+ 0 - 5
Jellyfin.Api/Controllers/LibraryController.cs

@@ -732,9 +732,6 @@ namespace Jellyfin.Api.Controllers
             }
             else
             {
-                // For non series and movie types these columns are typically null
-                isSeries = null;
-                isMovie = null;
                 includeItemTypes.Add(item.GetType().Name);
             }
 
@@ -742,8 +739,6 @@ namespace Jellyfin.Api.Controllers
             {
                 Limit = limit,
                 IncludeItemTypes = includeItemTypes.ToArray(),
-                IsMovie = isMovie,
-                IsSeries = isSeries,
                 SimilarTo = item,
                 DtoOptions = dtoOptions,
                 EnableTotalRecordCount = !isMovie ?? true,