mirror of https://github.com/jellyfin/jellyfin.git
Grab children directly if on UserRootFolder
This commit is contained in:
parent
9a515149ef
commit
8a8a5077a3
|
@ -512,8 +512,15 @@ public class ItemsController : BaseJellyfinApiController
|
|||
}
|
||||
else
|
||||
{
|
||||
var itemsArray = folder.GetChildren(user, true);
|
||||
result = new QueryResult<BaseItem>(itemsArray);
|
||||
if (folder is UserRootFolder)
|
||||
{
|
||||
result = new QueryResult<BaseItem>(folder.Children.ToList());
|
||||
}
|
||||
else
|
||||
{
|
||||
var itemsArray = folder.GetChildren(user, true);
|
||||
result = new QueryResult<BaseItem>(itemsArray);
|
||||
}
|
||||
}
|
||||
|
||||
return new QueryResult<BaseItemDto>(
|
||||
|
|
Loading…
Reference in New Issue