The Free Software Media System - Server Backend & API
Revert setting default BaseItemKind for CollectionType
theguymadmaxfa4626c08093
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.csindex f6a927a9ed..385795e9f7 100644--- a/Jellyfin.Api/Controllers/ItemsController.cs+++ b/Jellyfin.Api/Controllers/ItemsController.cs@@ -316,7 +316,6 @@ public class ItemsController : BaseJellyfinApiControllerif (folder is IHasCollectionType hasCollectionType){collectionType = hasCollectionType.CollectionType;- includeItemTypes = [.. includeItemTypes.Union(DtoExtensions.GetBaseItemKindsForCollectionType(collectionType))];}if (collectionType == CollectionType.playlists)@@ -329,7 +328,6 @@ public class ItemsController : BaseJellyfinApiControllerincludeItemTypes = collectionType switch{CollectionType.boxsets => [BaseItemKind.BoxSet],- null => [BaseItemKind.Movie, BaseItemKind.Series],_ => []};}