Skip to content

Commit

Permalink
Merge pull request jellyfin#419 from TheUltimateC0der/bug/418_Error_c…
Browse files Browse the repository at this point in the history
…onverting_value_null_to_type_System.Double_._Path_popularity

double Popularity for Movie model is now nullable to combat jellyfin#418
  • Loading branch information
LordMike committed Jan 7, 2023
2 parents b2bb3c6 + 15b4da1 commit ddb1233
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions TMDbLib/Objects/Movies/Movie.cs
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
using System;
using Newtonsoft.Json;

using System;
using System.Collections.Generic;
using Newtonsoft.Json;

using TMDbLib.Objects.Changes;
using TMDbLib.Objects.General;
using TMDbLib.Objects.Reviews;
Expand Down Expand Up @@ -65,7 +67,7 @@ public class Movie
public string Overview { get; set; }

[JsonProperty("popularity")]
public double Popularity { get; set; }
public double? Popularity { get; set; }

[JsonProperty("poster_path")]
public string PosterPath { get; set; }
Expand Down

0 comments on commit ddb1233

Please sign in to comment.