From 93443f1db2d281bd7868b44e24543cc1668fdee4 Mon Sep 17 00:00:00 2001 From: Mark McDowall Date: Mon, 10 May 2021 20:35:17 -0700 Subject: [PATCH] Fixed: Adding new series via API with seasons array missing --- src/Sonarr.Api.V3/Series/SeriesResource.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Sonarr.Api.V3/Series/SeriesResource.cs b/src/Sonarr.Api.V3/Series/SeriesResource.cs index 7223d7137..84d7fc76f 100644 --- a/src/Sonarr.Api.V3/Series/SeriesResource.cs +++ b/src/Sonarr.Api.V3/Series/SeriesResource.cs @@ -149,7 +149,7 @@ public static NzbDrone.Core.Tv.Series ToModel(this SeriesResource resource) AirTime = resource.AirTime, Images = resource.Images, - Seasons = resource.Seasons.ToModel(), + Seasons = resource.Seasons?.ToModel() ?? new List(), Year = resource.Year, Path = resource.Path,