diff --git a/movies.go b/movies.go index 5f8eeaa..d98cc81 100644 --- a/movies.go +++ b/movies.go @@ -30,6 +30,7 @@ type MovieDetails struct { 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"` diff --git a/movies_test.go b/movies_test.go index d8d89e8..3b8f86c 100644 --- a/movies_test.go +++ b/movies_test.go @@ -14,6 +14,7 @@ func (suite *TMBDTestSuite) TestGetMovieDetails() { bumblebee, err := suite.client.GetMovieDetails(bumblebeeID, nil) suite.Nil(err) suite.Equal("Bumblebee", bumblebee.Title) + suite.Equal([]string{"US"}, bumblebee.OriginCountry) } func (suite *TMBDTestSuite) TestGetMovieDetailsFail() {