mirror of
https://github.com/Readarr/Readarr
synced 2026-05-04 18:50:36 +02:00
Fixed: List Import additions when book / author lookup required
This commit is contained in:
parent
20b1f41ac1
commit
f7bf1e243d
1 changed files with 3 additions and 1 deletions
|
|
@ -183,12 +183,13 @@ private void MapBookReport(ImportListItemInfo report)
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
_logger.Trace($"Mapped {report.EditionGoodreadsId} to [{mappedBook.WorkId}] {mappedBook.BookTitleBare}");
|
_logger.Trace($"Mapped Book {report.Book} by Author {report.Author} to [{mappedBook.WorkId}] {mappedBook.BookTitleBare}");
|
||||||
|
|
||||||
report.BookGoodreadsId = mappedBook.WorkId.ToString();
|
report.BookGoodreadsId = mappedBook.WorkId.ToString();
|
||||||
report.Book = mappedBook.BookTitleBare;
|
report.Book = mappedBook.BookTitleBare;
|
||||||
report.Author ??= mappedBook.Author.Name;
|
report.Author ??= mappedBook.Author.Name;
|
||||||
report.AuthorGoodreadsId ??= mappedBook.Author.Id.ToString();
|
report.AuthorGoodreadsId ??= mappedBook.Author.Id.ToString();
|
||||||
|
report.EditionGoodreadsId = mappedBook.BookId.ToString();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -196,6 +197,7 @@ private void ProcessBookReport(ImportListDefinition importList, ImportListItemIn
|
||||||
{
|
{
|
||||||
if (report.EditionGoodreadsId == null)
|
if (report.EditionGoodreadsId == null)
|
||||||
{
|
{
|
||||||
|
_logger.Trace("Skipping report [{0}] due to missing EditionGoodreadsId", report.Book);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue