mirror of
https://github.com/Readarr/Readarr
synced 2025-12-06 08:24:52 +01:00
Fixed: Don't treat metadata errors as missing author/book entities
This commit is contained in:
parent
f53c4dc017
commit
0f3e716044
1 changed files with 5 additions and 5 deletions
|
|
@ -103,8 +103,8 @@ public Author GetAuthorInfo(string foreignAuthorId, bool useCache = true)
|
|||
}
|
||||
catch (BookInfoException e)
|
||||
{
|
||||
_logger.Warn(e, "Unexpected error getting author info");
|
||||
throw new AuthorNotFoundException(foreignAuthorId);
|
||||
_logger.Warn(e, "Unexpected error getting author info: {foreignAuthorId}", foreignAuthorId);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -126,8 +126,8 @@ public Tuple<string, Book, List<AuthorMetadata>> GetBookInfo(string foreignBookI
|
|||
}
|
||||
catch (BookInfoException e)
|
||||
{
|
||||
_logger.Warn(e, "Unexpected error getting book info");
|
||||
throw new BookNotFoundException(foreignBookId);
|
||||
_logger.Warn(e, "Unexpected error getting book info: {foreignBookId}", foreignBookId);
|
||||
throw;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -430,7 +430,7 @@ private Book GetEditionInfo(int id, bool getAllEditions)
|
|||
{
|
||||
var author = PollAuthor(newId);
|
||||
|
||||
book = author.Books.Value.Where(b => b.Editions.Value.Any(e => e.ForeignEditionId == id.ToString())).FirstOrDefault();
|
||||
book = author.Books.Value.FirstOrDefault(b => b.Editions.Value.Any(e => e.ForeignEditionId == id.ToString()));
|
||||
authors = new List<AuthorMetadata> { author.Metadata.Value };
|
||||
}
|
||||
else if (type == "work")
|
||||
|
|
|
|||
Loading…
Reference in a new issue