mirror of
https://github.com/fergalmoran/Readarr.git
synced 2026-01-25 18:16:45 +00:00
Fix duplicates in author search
This commit is contained in:
@@ -153,7 +153,10 @@ namespace NzbDrone.Core.MetadataSource.BookInfo
|
||||
{
|
||||
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