mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-07-19 12:44:19 +01:00
Only default recursive to true if we have includeItemTypes
This commit is contained in:
@@ -318,9 +318,6 @@ public class ItemsController : BaseJellyfinApiController
|
|||||||
}
|
}
|
||||||
else if (folder is ICollectionFolder)
|
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)
|
if (includeItemTypes.Length == 0)
|
||||||
{
|
{
|
||||||
includeItemTypes = collectionType switch
|
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
|
if (item is not UserRootFolder
|
||||||
|
|||||||
Reference in New Issue
Block a user