From 5b93895c149cf4be5147c017fa24ded7024f4217 Mon Sep 17 00:00:00 2001 From: Luke Pulverenti Date: Wed, 18 Sep 2013 19:33:27 -0400 Subject: [PATCH] show album count --- .../Library/Validators/ArtistsValidator.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/MediaBrowser.Server.Implementations/Library/Validators/ArtistsValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/ArtistsValidator.cs index d359d211c..e3faea071 100644 --- a/MediaBrowser.Server.Implementations/Library/Validators/ArtistsValidator.cs +++ b/MediaBrowser.Server.Implementations/Library/Validators/ArtistsValidator.cs @@ -72,10 +72,6 @@ namespace MediaBrowser.Server.Implementations.Library.Validators var numComplete = 0; - var userLibraries = _userManager.Users - .Select(i => new Tuple(i.Id, i.RootFolder.GetRecursiveChildren(i).OfType().ToArray())) - .ToArray(); - foreach (var artist in allArtists) { cancellationToken.ThrowIfCancellationRequested(); @@ -110,9 +106,9 @@ namespace MediaBrowser.Server.Implementations.Library.Validators // Populate counts of items //SetItemCounts(artist, null, allItems.OfType()); - foreach (var lib in userLibraries) + foreach (var user in _userManager.Users.ToArray()) { - SetItemCounts(artist, lib.Item1, lib.Item2); + SetItemCounts(artist, user.Id, user.RootFolder.GetRecursiveChildren(user).OfType().ToArray()); } numComplete++;