fix(meta,api): detail ratings are optional too

This commit is contained in:
Miguel Palhas
2026-08-23 22:26:04 +01:00
parent c9e73cb23c
commit 30382585ea
3 changed files with 15 additions and 7 deletions
+4 -2
View File
@@ -46,7 +46,8 @@ pub struct MovieMetadata {
pub status: String,
pub poster_path: Option<String>,
pub backdrop_path: Option<String>,
pub vote_average: f64,
/// Absent when TMDB has no votes for the title (#156).
pub vote_average: Option<f64>,
pub vote_count: u32,
pub homepage: Option<String>,
/// §9.6 links out to `IMDb` for movies.
@@ -68,7 +69,8 @@ pub struct SeriesMetadata {
pub status: String,
pub poster_path: Option<String>,
pub backdrop_path: Option<String>,
pub vote_average: f64,
/// Absent when TMDB has no votes for the title (#156).
pub vote_average: Option<f64>,
pub vote_count: u32,
pub homepage: Option<String>,
/// §9.6 links out to TVDB for series.