v0.8.4.2 - Hotfix (#3422)

This commit is contained in:
Joe Milazzo 2024-11-27 13:29:10 -06:00 committed by GitHub
parent 19b0163da7
commit 85d0d1f0f4
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 15 additions and 15 deletions

View file

@ -343,7 +343,7 @@ public class SeriesService : ISeriesService
var existingPeople = await _unitOfWork.PersonRepository.GetPeopleByNames(normalizedNames);
// Use a dictionary for quick lookups
var existingPeopleDictionary = existingPeople.ToDictionary(p => p.NormalizedName, p => p);
var existingPeopleDictionary = existingPeople.DistinctBy(p => p.NormalizedName).ToDictionary(p => p.NormalizedName, p => p);
// List to track people that will be added to the metadata
var peopleToAdd = new List<Person>();