More Scanner Work (#2994)

This commit is contained in:
Joe Milazzo 2024-06-10 15:10:00 -05:00 committed by GitHub
parent 1de426070b
commit 982253f1b6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 8 additions and 5 deletions

View file

@ -2118,7 +2118,8 @@ public class SeriesRepository : ISeriesRepository
LowestFolderPath = s.LowestFolderPath,
Format = s.Format,
LibraryRoots = s.Library.Folders.Select(f => f.Path)
}).ToListAsync();
})
.ToListAsync();
var map = new Dictionary<string, IList<SeriesModified>>();
foreach (var series in info)
@ -2137,7 +2138,7 @@ public class SeriesRepository : ISeriesRepository
}
if (string.IsNullOrEmpty(series.LowestFolderPath)) continue;
if (string.IsNullOrEmpty(series.LowestFolderPath) || series.FolderPath.Equals(series.LowestFolderPath)) continue;
if (!map.TryGetValue(series.LowestFolderPath, out var value2))
{
map.Add(series.LowestFolderPath, new List<SeriesModified>()