From 34760b8bc6bc2f8772c8b2b202ec90042d457958 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Mart=C3=ADn=20Gonz=C3=A1lez?= Date: Mon, 13 Nov 2023 11:07:33 +0100 Subject: [PATCH 1/2] Add Runtime property to TV Season Episode --- TMDbLib/Objects/Search/TvSeasonEpisode.cs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/TMDbLib/Objects/Search/TvSeasonEpisode.cs b/TMDbLib/Objects/Search/TvSeasonEpisode.cs index 433dd639..f9619619 100644 --- a/TMDbLib/Objects/Search/TvSeasonEpisode.cs +++ b/TMDbLib/Objects/Search/TvSeasonEpisode.cs @@ -32,6 +32,9 @@ public class TvSeasonEpisode [JsonProperty("production_code")] public string ProductionCode { get; set; } + [JsonProperty("runtime")] + public int Runtime { get; set; } + [JsonProperty("season_number")] public int SeasonNumber { get; set; } From 5e49bf2f3bdc20d9771caef14a3e8b81d1c937d2 Mon Sep 17 00:00:00 2001 From: Daniel Martin Gonzalez Date: Mon, 13 Nov 2023 14:40:25 +0100 Subject: [PATCH 2/2] Fix PR Comments --- TMDbLib/Objects/Search/TvSeasonEpisode.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/TMDbLib/Objects/Search/TvSeasonEpisode.cs b/TMDbLib/Objects/Search/TvSeasonEpisode.cs index f9619619..2e354e96 100644 --- a/TMDbLib/Objects/Search/TvSeasonEpisode.cs +++ b/TMDbLib/Objects/Search/TvSeasonEpisode.cs @@ -33,7 +33,7 @@ public class TvSeasonEpisode public string ProductionCode { get; set; } [JsonProperty("runtime")] - public int Runtime { get; set; } + public int? Runtime { get; set; } [JsonProperty("season_number")] public int SeasonNumber { get; set; } @@ -47,4 +47,4 @@ public class TvSeasonEpisode [JsonProperty("vote_count")] public int VoteCount { get; set; } } -} \ No newline at end of file +}