diff options
| author | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 15:44:52 +0200 |
|---|---|---|
| committer | Shadowghost <Ghost_of_Stone@web.de> | 2026-04-11 17:42:27 +0200 |
| commit | d8bbb4dfe8e614dd8754d83c622a4964af1d21f6 (patch) | |
| tree | 98feed940c0889311565fd21fb0ef8b60625cfe7 /Jellyfin.Api/Controllers/ItemsController.cs | |
| parent | 24a0df9a39f16143ce7ae61f3a07dbe7756d4124 (diff) | |
Fix filters
Diffstat (limited to 'Jellyfin.Api/Controllers/ItemsController.cs')
| -rw-r--r-- | Jellyfin.Api/Controllers/ItemsController.cs | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/Jellyfin.Api/Controllers/ItemsController.cs b/Jellyfin.Api/Controllers/ItemsController.cs index d2fb1cd294..97183f09d4 100644 --- a/Jellyfin.Api/Controllers/ItemsController.cs +++ b/Jellyfin.Api/Controllers/ItemsController.cs @@ -299,6 +299,18 @@ public class ItemsController : BaseJellyfinApiController recursive = true; includeItemTypes = new[] { BaseItemKind.Playlist }; } + else if (folder is ICollectionFolder && includeItemTypes.Length == 0) + { + // 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; + includeItemTypes = collectionType switch + { + CollectionType.boxsets => [BaseItemKind.BoxSet], + null => [BaseItemKind.Movie, BaseItemKind.Series], // mixed + _ => [] + }; + } if (item is not UserRootFolder // api keys can always access all folders |
