mirror of
https://github.com/Readarr/Readarr
synced 2025-12-28 19:22:57 +01:00
Fixed: Error getting search results when there is only one result
This commit is contained in:
parent
64fafc599c
commit
bc3764dcda
2 changed files with 4 additions and 2 deletions
|
|
@ -171,7 +171,7 @@ class AddNewItem extends Component {
|
|||
<div>
|
||||
You can also search using the
|
||||
<Link to="https://goodreads.com"> Goodreads ID </Link>
|
||||
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)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
|
@ -183,7 +183,7 @@ class AddNewItem extends Component {
|
|||
<div>
|
||||
You can also search using the
|
||||
<Link to="https://goodreads.com"> Goodreads ID </Link>
|
||||
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)
|
||||
</div>
|
||||
</div>
|
||||
}
|
||||
|
|
|
|||
|
|
@ -358,6 +358,8 @@ public List<Book> SearchByGoodreadsBookId(int id, bool getAllEditions)
|
|||
{
|
||||
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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue