display more types on ibn page
This commit is contained in:
parent
5ae162fb21
commit
d399705e59
|
@ -173,7 +173,7 @@ namespace MediaBrowser.Api.Library
|
|||
{
|
||||
if (string.IsNullOrEmpty(request.UserId))
|
||||
{
|
||||
var result = _libraryManager.GetDefaultVirtualFolders().ToList();
|
||||
var result = _libraryManager.GetDefaultVirtualFolders().OrderBy(i => i.Name).ToList();
|
||||
|
||||
return ToOptimizedResult(result);
|
||||
}
|
||||
|
@ -181,7 +181,7 @@ namespace MediaBrowser.Api.Library
|
|||
{
|
||||
var user = _userManager.GetUserById(new Guid(request.UserId));
|
||||
|
||||
var result = _libraryManager.GetVirtualFolders(user).ToList();
|
||||
var result = _libraryManager.GetVirtualFolders(user).OrderBy(i => i.Name).ToList();
|
||||
|
||||
return ToOptimizedResult(result);
|
||||
}
|
||||
|
|
|
@ -832,7 +832,7 @@ namespace MediaBrowser.Server.Implementations.Library
|
|||
.Select(dir => new VirtualFolderInfo
|
||||
{
|
||||
Name = Path.GetFileName(dir),
|
||||
Locations = Directory.EnumerateFiles(dir, "*.lnk", SearchOption.TopDirectoryOnly).Select(FileSystem.ResolveShortcut).ToList()
|
||||
Locations = Directory.EnumerateFiles(dir, "*.lnk", SearchOption.TopDirectoryOnly).Select(FileSystem.ResolveShortcut).OrderBy(i => i).ToList()
|
||||
});
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user