mirror of
https://github.com/fergalmoran/Readarr.git
synced 2025-12-22 09:29:59 +00:00
@@ -507,12 +507,16 @@ namespace NzbDrone.Core.MetadataSource.BookInfo
|
|||||||
|
|
||||||
private List<Book> MapBulkBook(BulkBookResource resource)
|
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>();
|
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)
|
foreach (var work in resource.Works)
|
||||||
{
|
{
|
||||||
var book = MapBook(work);
|
var book = MapBook(work);
|
||||||
|
|||||||
Reference in New Issue
Block a user