diff --git a/MediaBrowser.Server.Implementations/Library/Validators/PeoplePostScanTask.cs b/MediaBrowser.Server.Implementations/Library/Validators/PeoplePostScanTask.cs
index 88f0e1e22..cfc7f4310 100644
--- a/MediaBrowser.Server.Implementations/Library/Validators/PeoplePostScanTask.cs
+++ b/MediaBrowser.Server.Implementations/Library/Validators/PeoplePostScanTask.cs
@@ -41,12 +41,10 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
/// Task.
public Task Run(IProgress progress, CancellationToken cancellationToken)
{
- RunInternal(progress, cancellationToken);
-
- return Task.FromResult(true);
+ return RunInternal(progress, cancellationToken);
}
- private void RunInternal(IProgress progress, CancellationToken cancellationToken)
+ private async Task RunInternal(IProgress progress, CancellationToken cancellationToken)
{
var userLibraries = _userManager.Users
.Select(i => new Tuple>(i.Id, i.RootFolder.GetRecursiveChildren(i, null)))
@@ -90,6 +88,8 @@ namespace MediaBrowser.Server.Implementations.Library.Validators
var itemByName = _libraryManager.GetPerson(name);
+ await itemByName.RefreshMetadata(cancellationToken, allowSlowProviders: false).ConfigureAwait(false);
+
foreach (var libraryId in counts.Keys)
{
var itemCounts = CountHelpers.GetCounts(counts[libraryId]);