From 93a42e2fe9e44e216097ed50abcf0a6d5a03f196 Mon Sep 17 00:00:00 2001 From: ta264 Date: Fri, 11 Feb 2022 21:31:13 +0000 Subject: [PATCH] Fix duplicates in author search --- src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs index a0fecc42c..5f0992c0b 100644 --- a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs @@ -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 SearchForNewBook(string title, string author, bool getAllEditions = true)