From 20df84fb7d65e8b2f8d4d360aec21b8538ce81b4 Mon Sep 17 00:00:00 2001 From: Djeddi Yacine <127781608+djeddi-yacine@users.noreply.github.com> Date: Mon, 19 Aug 2024 15:33:26 +0100 Subject: [PATCH] add the optional field in the external ids structs for both the tv and movie (#69) Co-authored-by: dj.yacine <0dj.yacine0@gmail.com> --- movies.go | 23 +++++++++++------------ tv.go | 1 + 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/movies.go b/movies.go index d98cc81..68367c5 100644 --- a/movies.go +++ b/movies.go @@ -22,15 +22,15 @@ type MovieDetails struct { ID int64 `json:"id"` Name string `json:"name"` } `json:"genres"` - Homepage string `json:"homepage"` - ID int64 `json:"id"` - IMDbID string `json:"imdb_id"` - OriginalLanguage string `json:"original_language"` - OriginalTitle string `json:"original_title"` - Overview string `json:"overview"` - Popularity float32 `json:"popularity"` - PosterPath string `json:"poster_path"` - OriginCountry []string `json:"origin_country"` + Homepage string `json:"homepage"` + ID int64 `json:"id"` + IMDbID string `json:"imdb_id"` + OriginalLanguage string `json:"original_language"` + OriginalTitle string `json:"original_title"` + Overview string `json:"overview"` + Popularity float32 `json:"popularity"` + PosterPath string `json:"poster_path"` + OriginCountry []string `json:"origin_country"` ProductionCompanies []struct { Name string `json:"name"` ID int64 `json:"id"` @@ -154,7 +154,6 @@ type MovieWatchProvidersAppend struct { // GetMovieDetails get the primary information about a movie. // // https://developers.themoviedb.org/3/movies -// func (c *Client) GetMovieDetails( id int, urlOptions map[string]string, @@ -192,7 +191,6 @@ type MovieAccountStates struct { // If it belongs to your favourite list. // // https://developers.themoviedb.org/3/movies/get-movie-account-states -// func (c *Client) GetMovieAccountStates( id int, urlOptions map[string]string, @@ -348,6 +346,7 @@ type MovieExternalIDs struct { FacebookID string `json:"facebook_id"` InstagramID string `json:"instagram_id"` TwitterID string `json:"twitter_id"` + WikiData string `json:"wikidata_id,omitempty"` ID int64 `json:"id,omitempty"` } @@ -393,7 +392,7 @@ type MovieImage struct { // MovieImages type is a struct for images JSON response. type MovieImages struct { - ID int64 `json:"id,omitempty"` + ID int64 `json:"id,omitempty"` Backdrops []MovieImage `json:"backdrops"` Logos []MovieImage `json:"logos"` Posters []MovieImage `json:"posters"` diff --git a/tv.go b/tv.go index 0ad6b51..2e0dc8d 100644 --- a/tv.go +++ b/tv.go @@ -534,6 +534,7 @@ type TVExternalIDs struct { FacebookID string `json:"facebook_id"` InstagramID string `json:"instagram_id"` TwitterID string `json:"twitter_id"` + WikiData string `json:"wikidata_id,omitempty"` ID int64 `json:"id,omitempty"` }