Fix duplicates in author search

pull/1528/head
ta264 2 years ago
parent 0f9ab46dd6
commit 93a42e2fe9

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

Loading…
Cancel
Save