mirror of
https://github.com/Readarr/Readarr
synced 2026-04-11 15:33:23 +02:00
Fix duplicates in author search
This commit is contained in:
parent
0f9ab46dd6
commit
93a42e2fe9
1 changed files with 4 additions and 1 deletions
|
|
@ -153,7 +153,10 @@ public List<Author> SearchForNewAuthor(string title)
|
|||
{
|
||||
var books = SearchForNewBook(title, null);
|
||||
|
||||
return books.Select(x => x.Author.Value).ToList();
|
||||
return books
|
||||
.Select(x => x.Author.Value)
|
||||
.DistinctBy(x => x.ForeignAuthorId)
|
||||
.ToList();
|
||||
}
|
||||
|
||||
public List<Book> SearchForNewBook(string title, string author, bool getAllEditions = true)
|
||||
|
|
|
|||
Loading…
Reference in a new issue