mirror of
https://github.com/Readarr/Readarr
synced 2026-01-16 12:33:54 +01:00
parent
63b1b56a4f
commit
ce808c6d7b
1 changed files with 8 additions and 4 deletions
|
|
@ -507,12 +507,16 @@ private List<Book> MapSearchResult(List<int> ids)
|
|||
|
||||
private List<Book> MapBulkBook(BulkBookResource resource)
|
||||
{
|
||||
var authors = resource.Authors.Select(MapAuthorMetadata).ToDictionary(x => x.ForeignAuthorId, x => x);
|
||||
|
||||
var series = resource.Series.Select(MapSeries).ToList();
|
||||
|
||||
var books = new List<Book>();
|
||||
|
||||
if (resource == null)
|
||||
{
|
||||
return books;
|
||||
}
|
||||
|
||||
var authors = resource.Authors.Select(MapAuthorMetadata).ToDictionary(x => x.ForeignAuthorId, x => x);
|
||||
var series = resource.Series.Select(MapSeries).ToList();
|
||||
|
||||
foreach (var work in resource.Works)
|
||||
{
|
||||
var book = MapBook(work);
|
||||
|
|
|
|||
Loading…
Reference in a new issue