mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-06-02 05:48:47 +01:00
sync updates
This commit is contained in:
@@ -23,8 +23,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
|
||||
protected override IEnumerable<BaseItem> GetEligibleChildrenForRecursiveChildren(User user)
|
||||
{
|
||||
return RecursiveChildren
|
||||
.OfType<Playlist>();
|
||||
return GetRecursiveChildren(i => i is Playlist);
|
||||
}
|
||||
|
||||
public override bool IsHidden
|
||||
|
||||
@@ -81,8 +81,7 @@ namespace MediaBrowser.Server.Implementations.Playlists
|
||||
var folder = item as Folder;
|
||||
if (folder != null)
|
||||
{
|
||||
options.MediaType = folder.GetRecursiveChildren()
|
||||
.Where(i => !i.IsFolder && i.SupportsAddingToPlaylist)
|
||||
options.MediaType = folder.GetRecursiveChildren(i => !i.IsFolder && i.SupportsAddingToPlaylist)
|
||||
.Select(i => i.MediaType)
|
||||
.FirstOrDefault(i => !string.IsNullOrWhiteSpace(i));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user