mirror of
https://github.com/jellyfin/jellyfin.git
synced 2024-11-16 02:18:54 -07:00
fix marking seasons unplayed
This commit is contained in:
parent
71af43795a
commit
63b218be44
@ -1197,9 +1197,16 @@ namespace MediaBrowser.Controller.Entities
|
||||
/// <returns>Task.</returns>
|
||||
public override async Task MarkUnplayed(User user)
|
||||
{
|
||||
var itemsResult = await GetItems(new InternalItemsQuery
|
||||
{
|
||||
User = user,
|
||||
Recursive = true,
|
||||
IsFolder = false
|
||||
|
||||
}).ConfigureAwait(false);
|
||||
|
||||
// Sweep through recursively and update status
|
||||
var tasks = GetRecursiveChildren(user, i => !i.IsFolder && i.LocationType != LocationType.Virtual)
|
||||
.Select(c => c.MarkUnplayed(user));
|
||||
var tasks = itemsResult.Items.Select(c => c.MarkUnplayed(user));
|
||||
|
||||
await Task.WhenAll(tasks).ConfigureAwait(false);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user