From fc4c42eeb7d0d83f0001b1e2febc2dc4740dbab1 Mon Sep 17 00:00:00 2001 From: ta264 Date: Mon, 18 Jan 2021 20:09:28 +0000 Subject: [PATCH] Fixed: Refresh fail if series title null --- src/NzbDrone.Core/MetadataSource/Goodreads/GoodreadsProxy.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/Goodreads/GoodreadsProxy.cs b/src/NzbDrone.Core/MetadataSource/Goodreads/GoodreadsProxy.cs index eb9cc728b..b31093569 100644 --- a/src/NzbDrone.Core/MetadataSource/Goodreads/GoodreadsProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/Goodreads/GoodreadsProxy.cs @@ -273,7 +273,10 @@ namespace NzbDrone.Core.MetadataSource.Goodreads 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();