mirror of
https://github.com/Readarr/Readarr
synced 2026-01-30 11:23:00 +01:00
Fixed: Better searching for local candidate editions
This commit is contained in:
parent
ef35efb127
commit
34506025ac
2 changed files with 5 additions and 1 deletions
|
|
@ -78,7 +78,8 @@ public List<Edition> FindByAuthorMetadataId(int authorMetadataId, bool onlyMonit
|
|||
|
||||
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 @@ private List<CandidateEdition> GetDbCandidatesByAuthor(LocalEdition localEdition
|
|||
{
|
||||
candidateReleases.AddRange(GetDbCandidatesByBook(book, includeExisting));
|
||||
}
|
||||
|
||||
var possibleEditions = _editionService.GetCandidates(author.AuthorMetadataId, bookTag);
|
||||
candidateReleases.AddRange(GetDbCandidatesByEdition(possibleEditions, includeExisting));
|
||||
}
|
||||
|
||||
return candidateReleases;
|
||||
|
|
|
|||
Loading…
Reference in a new issue