From 8687dbda1d651e3a7d8ef7829826229f7a83df85 Mon Sep 17 00:00:00 2001 From: Qstick Date: Sun, 21 Jun 2020 22:14:31 -0400 Subject: [PATCH] Fixed: Don't fail lookup if no Recommendations for a result --- src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs index bbd62e940..361dc6660 100644 --- a/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs +++ b/src/NzbDrone.Core/MetadataSource/SkyHook/SkyHookProxy.cs @@ -191,7 +191,7 @@ public Movie MapMovie(MovieResource resource) movie.Certification = resource.Certifications.FirstOrDefault(m => m.Country == certificationCountry)?.Certification; movie.Ratings = resource.Ratings.Select(MapRatings).FirstOrDefault() ?? new Ratings(); movie.Genres = resource.Genres; - movie.Recommendations = resource.Recommendations.Select(r => r.TmdbId).ToList(); + movie.Recommendations = resource.Recommendations?.Select(r => r.TmdbId).ToList() ?? new List(); var now = DateTime.Now;