From bc3764dcdacc253ed7fdbe45390d6ab0150124c7 Mon Sep 17 00:00:00 2001 From: ta264 Date: Sun, 16 Jan 2022 21:47:52 +0000 Subject: [PATCH] Fixed: Error getting search results when there is only one result --- frontend/src/Search/AddNewItem.js | 4 ++-- src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/frontend/src/Search/AddNewItem.js b/frontend/src/Search/AddNewItem.js index fde5d5ba3..6f93c23d2 100644 --- a/frontend/src/Search/AddNewItem.js +++ b/frontend/src/Search/AddNewItem.js @@ -171,7 +171,7 @@ class AddNewItem extends Component {
You can also search using the Goodreads ID - of a book (e.g. goodreads:656), the isbn (e.g. isbn:067003469X) or the asin (e.g. asin:B00JCDK5ME) + of a book (e.g. edition:656), work (e.g. work:4912783) or author (e.g. author:128382), the isbn (e.g. isbn:067003469X) or the asin (e.g. asin:B00JCDK5ME)
} @@ -183,7 +183,7 @@ class AddNewItem extends Component {
You can also search using the Goodreads ID - of a book (e.g. goodreads:656), the isbn (e.g. isbn:067003469X) or the asin (e.g. asin:B00JCDK5ME) + of a book (e.g. edition:656), work (e.g. work:4912783) or author (e.g. author:128382), the isbn (e.g. isbn:067003469X) or the asin (e.g. asin:B00JCDK5ME)
} diff --git a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs index a8c32fa03..77bd7c29b 100644 --- a/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/BookInfo/BookInfoProxy.cs @@ -358,6 +358,8 @@ namespace NzbDrone.Core.MetadataSource.BookInfo { var trimmed = new Book(); trimmed.UseMetadataFrom(book); + trimmed.Author.Value.Metadata = book.AuthorMetadata.Value; + trimmed.AuthorMetadata = book.AuthorMetadata.Value; trimmed.SeriesLinks = book.SeriesLinks; var edition = book.Editions.Value.SingleOrDefault(e => e.ForeignEditionId == id.ToString()); if (edition == null)