aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBond-009 <bond.009@outlook.com>2026-06-03 18:16:09 +0200
committerGitHub <noreply@github.com>2026-06-03 18:16:09 +0200
commitb71b4cc26f88a1db19fba2dbf1abb501184d463c (patch)
tree4ed785b9372de9bef26a93c105068d52a6a075d5
parent7185257da57dcb3b9d6dd28403fb9a9c9b3eb959 (diff)
parentcc5fb3f1eec11fcb4af5fbbc93b4d78b0568e2b4 (diff)
Merge pull request #16999 from Shadowghost/fix-recursive
Only default recursive to true if we have includeItemTypes
-rw-r--r--Jellyfin.Api/Controllers/ItemsController.cs10
1 files changed, 7 insertions, 3 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs
index 363af9e43b..5705284cfb 100644
--- a/Jellyfin.Api/Controllers/ItemsController.cs
+++ b/Jellyfin.Api/Controllers/ItemsController.cs
@@ -318,9 +318,6 @@ public class ItemsController : BaseJellyfinApiController
}
else if (folder is ICollectionFolder)
{
- // When the client doesn't specify recursive/includeItemTypes, force the query
- // through the database path where all filters (IsHD, genres, etc.) are applied.
- recursive ??= true;
if (includeItemTypes.Length == 0)
{
includeItemTypes = collectionType switch
@@ -330,6 +327,13 @@ public class ItemsController : BaseJellyfinApiController
_ => []
};
}
+
+ // When the client doesn't specify recursive/includeItemTypes, force the query
+ // through the database path where all filters (IsHD, genres, etc.) are applied.
+ if (includeItemTypes.Length > 0)
+ {
+ recursive ??= true;
+ }
}
if (item is not UserRootFolder