Move all data fetching to BookInfo v2

This commit is contained in:
BookInfo
2022-01-12 21:38:30 +00:00
committed by ta264
parent 33e1c4a537
commit 1491788081
43 changed files with 904 additions and 941 deletions
@@ -58,9 +58,7 @@ namespace NzbDrone.Core.Books
newAuthor.AuthorMetadataId = newAuthor.Metadata.Value.Id;
// add the author itself
_authorService.AddAuthor(newAuthor, doRefresh);
return newAuthor;
return _authorService.AddAuthor(newAuthor, doRefresh);
}
public List<Author> AddAuthors(List<Author> newAuthors, bool doRefresh = true)
@@ -97,7 +95,7 @@ namespace NzbDrone.Core.Books
try
{
author = _authorInfo.GetAuthorInfo(newAuthor.Metadata.Value.ForeignAuthorId, includeBooks: false);
author = _authorInfo.GetAuthorInfo(newAuthor.Metadata.Value.ForeignAuthorId, false);
}
catch (AuthorNotFoundException)
{