aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-18 19:33:27 -0400
committerLuke Pulverenti <luke.pulverenti@gmail.com>2013-09-18 19:33:27 -0400
commit5b93895c149cf4be5147c017fa24ded7024f4217 (patch)
tree561a75cdf06161dd1a5c5d250628ff2861c6408d
parent18a909797fe1a8d8005841582ed01e91c31509dd (diff)
show album count
-rw-r--r--MediaBrowser.Server.Implementations/Library/Validators/ArtistsValidator.cs8
1 files 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<Guid, IHasArtist[]>(i.Id, i.RootFolder.GetRecursiveChildren(i).OfType<IHasArtist>().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<IHasArtist>());
- 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<IHasArtist>().ToArray());
}
numComplete++;