fix marking seasons unplayed

pull/702/head
Luke Pulverenti 9 years ago
parent 71af43795a
commit 63b218be44

@ -1197,9 +1197,16 @@ namespace MediaBrowser.Controller.Entities
/// <returns>Task.</returns> /// <returns>Task.</returns>
public override async Task MarkUnplayed(User user) 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 // Sweep through recursively and update status
var tasks = GetRecursiveChildren(user, i => !i.IsFolder && i.LocationType != LocationType.Virtual) var tasks = itemsResult.Items.Select(c => c.MarkUnplayed(user));
.Select(c => c.MarkUnplayed(user));
await Task.WhenAll(tasks).ConfigureAwait(false); await Task.WhenAll(tasks).ConfigureAwait(false);
} }

Loading…
Cancel
Save