Explorar el Código

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

Luke Pulverenti hace 9 años
padre
commit
71af43795a
Se han modificado 1 ficheros con 9 adiciones y 2 borrados
  1. 9 2
      MediaBrowser.Controller/Entities/Folder.cs

+ 9 - 2
MediaBrowser.Controller/Entities/Folder.cs

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