Cleanup Amelia's PR.

Return instantly when downloading a cover from Kavita+ that isn't better.
This commit is contained in:
Joseph Milazzo 2025-05-09 17:08:11 -05:00
parent 19d2e20f24
commit d0b4ad6257
8 changed files with 39 additions and 24 deletions

View file

@ -654,7 +654,10 @@ public class ExternalMetadataService : IExternalMetadataService
mapping.Staff.Name = mapping.PreferredName;
if (existingPeopleDictionary.ContainsKey(mapping.PreferredName.ToNormalized()))
{
continue;
}
if (existingPeopleDictionary.TryGetValue(mapping.AlternativeName.ToNormalized(), out var person))
{
@ -665,8 +668,6 @@ public class ExternalMetadataService : IExternalMetadataService
if (modified)
{
// Can I do this? Is this safe? Am I commiting other stuff to early
// Tests do fail without
await _unitOfWork.CommitAsync();
}