mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-04 06:48:35 +01:00
Pushing missing changes
This commit is contained in:
21
MediaBrowser.Controller/Entities/UserRootFolder.cs
Normal file
21
MediaBrowser.Controller/Entities/UserRootFolder.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using System.Collections.Generic;
|
||||
using System.Linq;
|
||||
|
||||
namespace MediaBrowser.Controller.Entities
|
||||
{
|
||||
/// <summary>
|
||||
/// Special class used for User Roots. Children contain actual ones defined for this user
|
||||
/// PLUS the virtual folders from the physical root (added by plug-ins).
|
||||
/// </summary>
|
||||
public class UserRootFolder : Folder
|
||||
{
|
||||
/// <summary>
|
||||
/// Get the children of this folder from the actual file system
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{BaseItem}.</returns>
|
||||
protected override IEnumerable<BaseItem> GetNonCachedChildren()
|
||||
{
|
||||
return base.GetNonCachedChildren().Concat(Kernel.Instance.RootFolder.VirtualChildren);
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user