diff --git a/Map/Models/MapLogic.cs b/Map/Models/MapLogic.cs index 09e6bad..3974602 100644 --- a/Map/Models/MapLogic.cs +++ b/Map/Models/MapLogic.cs @@ -823,9 +823,11 @@ public class MapLogic : Shared.Models.Methods.IMapLogic directoryName = Path.GetDirectoryName(mapping.MappingFromItem.RelativePath); if (directoryName is null) throw new NotSupportedException(); + if (mapping.MappingFromPerson is null) + continue; if (mapping.MappingFromItem.ResizedFileHolder.DirectoryName is null || !mapping.MappingFromItem.ResizedFileHolder.Exists) continue; - if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting || mapping.MappingFromPerson?.ApproximateYears is null) + if (mapping.By is null or Shared.Models.Stateless.IMapLogic.Sorting) continue; if (string.IsNullOrEmpty(mapping.MappingFromPerson.SegmentB)) throw new NotSupportedException(); @@ -839,7 +841,7 @@ public class MapLogic : Shared.Models.Methods.IMapLogic personKey = mapping.MappingFromPerson.PersonBirthday.Value.Ticks; if (!personKeyToCount.ContainsKey(personKey)) personKeyToCount.Add(personKey, 0); - if (personKeyToCount[personKey] > 1) + if (personKeyToCount[personKey] > _Configuration.PersonCharactersCopyCount) continue; if (!_PersonKeyToPersonContainer.TryGetValue(personKey, out personContainer)) continue;