mirror of
https://github.com/jellyfin/jellyfin.git
synced 2025-12-22 16:54:46 +03:00
add library folder option to home page
This commit is contained in:
@@ -160,6 +160,13 @@ namespace MediaBrowser.Api
|
||||
{
|
||||
var folder = (Folder) libraryManager.GetItemById(new Guid(parentId));
|
||||
|
||||
if (userId.HasValue)
|
||||
{
|
||||
var user = userManager.GetUserById(userId.Value);
|
||||
|
||||
return folder.GetRecursiveChildren(user).ToList();
|
||||
}
|
||||
|
||||
return folder.GetRecursiveChildren();
|
||||
}
|
||||
if (userId.HasValue)
|
||||
|
||||
Reference in New Issue
Block a user