Skip to content

Commit 20df84f

Browse files
djeddi-yacinedj.yacine
and
dj.yacine
authored
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>
1 parent e984d24 commit 20df84f

File tree

2 files changed

+12
-12
lines changed

2 files changed

+12
-12
lines changed

movies.go

Lines changed: 11 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@ type MovieDetails struct {
2222
ID int64 `json:"id"`
2323
Name string `json:"name"`
2424
} `json:"genres"`
25-
Homepage string `json:"homepage"`
26-
ID int64 `json:"id"`
27-
IMDbID string `json:"imdb_id"`
28-
OriginalLanguage string `json:"original_language"`
29-
OriginalTitle string `json:"original_title"`
30-
Overview string `json:"overview"`
31-
Popularity float32 `json:"popularity"`
32-
PosterPath string `json:"poster_path"`
33-
OriginCountry []string `json:"origin_country"`
25+
Homepage string `json:"homepage"`
26+
ID int64 `json:"id"`
27+
IMDbID string `json:"imdb_id"`
28+
OriginalLanguage string `json:"original_language"`
29+
OriginalTitle string `json:"original_title"`
30+
Overview string `json:"overview"`
31+
Popularity float32 `json:"popularity"`
32+
PosterPath string `json:"poster_path"`
33+
OriginCountry []string `json:"origin_country"`
3434
ProductionCompanies []struct {
3535
Name string `json:"name"`
3636
ID int64 `json:"id"`
@@ -154,7 +154,6 @@ type MovieWatchProvidersAppend struct {
154154
// GetMovieDetails get the primary information about a movie.
155155
//
156156
// https://developers.themoviedb.org/3/movies
157-
//
158157
func (c *Client) GetMovieDetails(
159158
id int,
160159
urlOptions map[string]string,
@@ -192,7 +191,6 @@ type MovieAccountStates struct {
192191
// If it belongs to your favourite list.
193192
//
194193
// https://developers.themoviedb.org/3/movies/get-movie-account-states
195-
//
196194
func (c *Client) GetMovieAccountStates(
197195
id int,
198196
urlOptions map[string]string,
@@ -348,6 +346,7 @@ type MovieExternalIDs struct {
348346
FacebookID string `json:"facebook_id"`
349347
InstagramID string `json:"instagram_id"`
350348
TwitterID string `json:"twitter_id"`
349+
WikiData string `json:"wikidata_id,omitempty"`
351350
ID int64 `json:"id,omitempty"`
352351
}
353352

@@ -393,7 +392,7 @@ type MovieImage struct {
393392

394393
// MovieImages type is a struct for images JSON response.
395394
type MovieImages struct {
396-
ID int64 `json:"id,omitempty"`
395+
ID int64 `json:"id,omitempty"`
397396
Backdrops []MovieImage `json:"backdrops"`
398397
Logos []MovieImage `json:"logos"`
399398
Posters []MovieImage `json:"posters"`

tv.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -534,6 +534,7 @@ type TVExternalIDs struct {
534534
FacebookID string `json:"facebook_id"`
535535
InstagramID string `json:"instagram_id"`
536536
TwitterID string `json:"twitter_id"`
537+
WikiData string `json:"wikidata_id,omitempty"`
537538
ID int64 `json:"id,omitempty"`
538539
}
539540

0 commit comments

Comments
 (0)