mirror of
https://github.com/Readarr/Readarr.git
synced 2026-04-28 23:06:43 -04:00
Move all data fetching to BookInfo
This commit is contained in:
@@ -254,7 +254,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Identification
|
||||
|
||||
try
|
||||
{
|
||||
remoteBooks = _bookSearchService.SearchByGoodreadsId(id);
|
||||
remoteBooks = _bookSearchService.SearchByGoodreadsBookId(id);
|
||||
}
|
||||
catch (GoodreadsException e)
|
||||
{
|
||||
|
||||
@@ -308,7 +308,7 @@ namespace NzbDrone.Core.MediaFiles.BookImport.Manual
|
||||
var edition = _editionService.GetEditionByForeignEditionId(file.ForeignEditionId);
|
||||
if (edition == null)
|
||||
{
|
||||
var tuple = _bookInfo.GetBookInfo(file.ForeignEditionId);
|
||||
var tuple = _bookInfo.GetBookInfo(book.ForeignBookId);
|
||||
edition = tuple.Item2.Editions.Value.SingleOrDefault(x => x.ForeignEditionId == file.ForeignEditionId);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user