Updated Matched Metadat to have a library type filter, given that a user might want to do just Comics or Manga at a time.

This commit is contained in:
Joseph Milazzo 2025-06-06 05:23:10 -05:00
parent 5db4c80410
commit ef77474e33
9 changed files with 48 additions and 16 deletions

View file

@ -234,6 +234,7 @@ public class ExternalSeriesMetadataRepository : IExternalSeriesMetadataRepositor
.Include(s => s.ExternalSeriesMetadata)
.Where(s => !ExternalMetadataService.NonEligibleLibraryTypes.Contains(s.Library.Type))
.Where(s => s.Library.AllowMetadataMatching)
.WhereIf(filter.LibraryType >= 0, s => s.Library.Type == (LibraryType) filter.LibraryType)
.FilterMatchState(filter.MatchStateOption)
.OrderBy(s => s.NormalizedName)
.ProjectTo<ManageMatchSeriesDto>(_mapper.ConfigurationProvider)