1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00

Fixed: Adding new series via API with seasons array missing

This commit is contained in:
Mark McDowall 2021-05-10 20:35:17 -07:00
parent a2427bd9df
commit 93443f1db2

View File

@ -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<Season>(),
Year = resource.Year,
Path = resource.Path,