Fixed: Better searching for local candidate editions

pull/1470/head
ta264 3 years ago
parent ef35efb127
commit 34506025ac

@ -78,7 +78,8 @@ namespace NzbDrone.Core.Books
if (onlyMonitored)
{
builder = builder.Where<Edition>(e => e.Monitored == true);
builder = builder.OrWhere<Edition>(e => e.Monitored == true);
builder = builder.OrWhere<Book>(b => b.AnyEditionOk == true);
}
return Query(builder);

@ -147,6 +147,9 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
{
candidateReleases.AddRange(GetDbCandidatesByBook(book, includeExisting));
}
var possibleEditions = _editionService.GetCandidates(author.AuthorMetadataId, bookTag);
candidateReleases.AddRange(GetDbCandidatesByEdition(possibleEditions, includeExisting));
}
return candidateReleases;

Loading…
Cancel
Save