diff options
| author | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-05 11:02:50 -0400 |
|---|---|---|
| committer | Luke Pulverenti <luke.pulverenti@gmail.com> | 2014-04-05 11:02:50 -0400 |
| commit | e4001ec92b4a7867c713331718af55136d6a164d (patch) | |
| tree | 078fc2bc0bd942fa87ff9c5440413f2dad38f067 /MediaBrowser.Server.Implementations/Library/Validators | |
| parent | 161e1af0eaa69e828f64d33311e3bc462852d6c4 (diff) | |
add latest translations
Diffstat (limited to 'MediaBrowser.Server.Implementations/Library/Validators')
| -rw-r--r-- | MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs index 722c24a10..b7af8beeb 100644 --- a/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs +++ b/MediaBrowser.Server.Implementations/Library/Validators/PeopleValidator.cs @@ -50,7 +50,9 @@ namespace MediaBrowser.Server.Implementations.Library.Validators var people = _libraryManager.RootFolder.GetRecursiveChildren() .SelectMany(c => c.People) - .DistinctBy(p => p.Name, StringComparer.OrdinalIgnoreCase) + .Where(i => !string.IsNullOrWhiteSpace(i.Name)) + .Select(i => i.Name) + .Distinct(StringComparer.OrdinalIgnoreCase) .ToList(); var numComplete = 0; @@ -61,13 +63,13 @@ namespace MediaBrowser.Server.Implementations.Library.Validators try { - var item = _libraryManager.GetPerson(person.Name); + var item = _libraryManager.GetPerson(person); await item.RefreshMetadata(options, cancellationToken).ConfigureAwait(false); } catch (Exception ex) { - _logger.ErrorException("Error validating IBN entry {0}", ex, person.Name); + _logger.ErrorException("Error validating IBN entry {0}", ex, person); } // Update progress |
