mirror of
https://github.com/jellyfin/jellyfin.git
synced 2026-04-22 01:54:42 +01:00
implement removing from playlists
This commit is contained in:
@@ -924,6 +924,18 @@ namespace MediaBrowser.Controller.Entities
|
||||
.Where(i => i != null);
|
||||
}
|
||||
|
||||
|
||||
/// <summary>
|
||||
/// Gets the linked children.
|
||||
/// </summary>
|
||||
/// <returns>IEnumerable{BaseItem}.</returns>
|
||||
public IEnumerable<Tuple<LinkedChild,BaseItem>> GetLinkedChildrenInfos()
|
||||
{
|
||||
return LinkedChildren
|
||||
.Select(i => new Tuple<LinkedChild,BaseItem>(i, GetLinkedChild(i)))
|
||||
.Where(i => i.Item2 != null);
|
||||
}
|
||||
|
||||
protected override async Task<bool> RefreshedOwnedItems(MetadataRefreshOptions options, List<FileSystemInfo> fileSystemChildren, CancellationToken cancellationToken)
|
||||
{
|
||||
var changesFound = false;
|
||||
|
||||
@@ -22,9 +22,9 @@ namespace MediaBrowser.Controller.Playlists
|
||||
return GetPlayableItems(user);
|
||||
}
|
||||
|
||||
public IEnumerable<BaseItem> GetManageableItems()
|
||||
public IEnumerable<Tuple<LinkedChild, BaseItem>> GetManageableItems()
|
||||
{
|
||||
return GetPlaylistItems(MediaType, GetLinkedChildren(), null);
|
||||
return GetLinkedChildrenInfos();
|
||||
}
|
||||
|
||||
private IEnumerable<BaseItem> GetPlayableItems(User user)
|
||||
|
||||
Reference in New Issue
Block a user