Fix duplicates in author search

This commit is contained in:
ta264
2022-02-11 21:31:13 +00:00
parent 0f9ab46dd6
commit 93a42e2fe9

View File

@@ -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)