diff options
author | metamuffin <metamuffin@disroot.org> | 2023-06-13 22:54:53 +0200 |
---|---|---|
committer | metamuffin <metamuffin@disroot.org> | 2023-06-13 22:54:53 +0200 |
commit | 876fe4bd1f64ecd131947d327e587c1aa295e32e (patch) | |
tree | 2f1978ee4449ae9da5d9a0a23a2027c20c6f96cb /tools/src/tmdb.rs | |
parent | d3d1ce321e54bf6c7fbc8b55b8a06eeb44fb254a (diff) | |
download | jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar.bz2 jellything-876fe4bd1f64ecd131947d327e587c1aa295e32e.tar.zst |
fix tmdb schema
Diffstat (limited to 'tools/src/tmdb.rs')
-rw-r--r-- | tools/src/tmdb.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/tools/src/tmdb.rs b/tools/src/tmdb.rs index c17adab..d451a95 100644 --- a/tools/src/tmdb.rs +++ b/tools/src/tmdb.rs @@ -14,14 +14,14 @@ pub struct TmdbQuery { #[derive(Debug, Clone, Deserialize)] pub struct TmdbQueryResult { pub adult: bool, - pub backdrop_path: String, + pub backdrop_path: Option<String>, pub genre_ids: Vec<u64>, pub id: u64, pub original_language: String, pub original_title: String, pub overview: String, pub popularity: f64, - pub poster_path: String, + pub poster_path: Option<String>, pub release_date: String, pub title: String, pub video: bool, @@ -46,11 +46,11 @@ pub struct TmdbDetails { pub vote_average: f64, pub vote_count: usize, pub budget: usize, - pub homepage: String, - pub imdb_id: String, + pub homepage: Option<String>, + pub imdb_id: Option<String>, pub production_companies: Vec<TmdbProductionCompany>, pub revenue: usize, - pub tagline: String, + pub tagline: Option<String>, } #[derive(Debug, Clone, Deserialize)] |