mirror of https://github.com/jellyfin/jellyfin.git
fixes #1166 - "Played" checkbox doesn't work for whole seasons
This commit is contained in:
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…
Reference in New Issue