From a90e925ec6384f3e94e6b4a09467595a9f84e9a5 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Tue, 16 Apr 2013 23:37:14 -0400 Subject: [PATCH] fixes #144 - Marking a boxset as viewed doesn't mark the individual titles of the set as viewed --- MediaBrowser.Controller/Entities/Folder.cs | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/MediaBrowser.Controller/Entities/Folder.cs b/MediaBrowser.Controller/Entities/Folder.cs index f8db07fe3..7253825a8 100644 --- a/MediaBrowser.Controller/Entities/Folder.cs +++ b/MediaBrowser.Controller/Entities/Folder.cs @@ -831,10 +831,8 @@ namespace MediaBrowser.Controller.Entities /// Task. public override async Task SetPlayedStatus(User user, bool wasPlayed, IUserDataRepository userManager) { - await base.SetPlayedStatus(user, wasPlayed, userManager).ConfigureAwait(false); - - // Now sweep through recursively and update status - var tasks = GetChildren(user).Select(c => c.SetPlayedStatus(user, wasPlayed, userManager)); + // Sweep through recursively and update status + var tasks = GetRecursiveChildren(user).Where(i => !i.IsFolder).Select(c => c.SetPlayedStatus(user, wasPlayed, userManager)); await Task.WhenAll(tasks).ConfigureAwait(false); }