mirror of
https://github.com/Readarr/Readarr
synced 2026-01-09 09:04:15 +01:00
Fixed: Refresh fail if series title null
This commit is contained in:
parent
8fc3aef872
commit
fc4c42eeb7
1 changed files with 4 additions and 1 deletions
|
|
@ -273,7 +273,10 @@ private List<Series> GetAuthorSeries(string foreignAuthorId, List<Book> books)
|
|||
var bookDict = books.ToDictionary(x => x.ForeignBookId);
|
||||
|
||||
// only take series where there are some works
|
||||
foreach (var seriesResource in resource.List.Where(x => x.Works.Any()))
|
||||
// and the title is not null
|
||||
// e.g. https://www.goodreads.com/series/work/6470221?format=xml is in series 260494
|
||||
// which has a null title and is not shown anywhere on goodreads webpage
|
||||
foreach (var seriesResource in resource.List.Where(x => x.Title.IsNotNullOrWhiteSpace() && x.Works.Any()))
|
||||
{
|
||||
var series = MapSeries(seriesResource);
|
||||
series.LinkItems = new List<SeriesBookLink>();
|
||||
|
|
|
|||
Loading…
Reference in a new issue