Skip to content

Commit

Permalink
add the optional field in the external ids structs for both the tv an…
Browse files Browse the repository at this point in the history
…d movie (#69)

Co-authored-by: dj.yacine <0dj.yacine0@gmail.com>
  • Loading branch information
djeddi-yacine and dj.yacine authored Aug 19, 2024
1 parent e984d24 commit 20df84f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
23 changes: 11 additions & 12 deletions movies.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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"`
}

Expand Down Expand Up @@ -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"`
Expand Down
1 change: 1 addition & 0 deletions tv.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
}

Expand Down

0 comments on commit 20df84f

Please sign in to comment.