fixes #1166 - "Played" checkbox doesn't work for whole seasons

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

@ -1176,9 +1176,16 @@ namespace MediaBrowser.Controller.Entities
DateTime? datePlayed, DateTime? datePlayed,
bool resetPosition) bool resetPosition)
{ {
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.MarkPlayed(user, datePlayed, resetPosition));
.Select(c => c.MarkPlayed(user, datePlayed, resetPosition));
await Task.WhenAll(tasks).ConfigureAwait(false); await Task.WhenAll(tasks).ConfigureAwait(false);
} }

Loading…
Cancel
Save