mirror of
https://github.com/Readarr/Readarr.git
synced 2026-02-02 02:02:47 -05:00
Fix duplicates in author search
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user