Skip to content

Commit

Permalink
TVSeasonDetails add VoteAverage (#63)
Browse files Browse the repository at this point in the history
  • Loading branch information
labulakalia committed Jun 10, 2024
1 parent 988b831 commit 8384886
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
11 changes: 6 additions & 5 deletions tv_seasons.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,11 +38,12 @@ type TVSeasonDetails struct {
ProfilePath string `json:"profile_path"`
} `json:"guest_stars"`
} `json:"episodes"`
Name string `json:"name"`
Overview string `json:"overview"`
ID int64 `json:"id"`
PosterPath string `json:"poster_path"`
SeasonNumber int `json:"season_number"`
Name string `json:"name"`
Overview string `json:"overview"`
ID int64 `json:"id"`
PosterPath string `json:"poster_path"`
SeasonNumber int `json:"season_number"`
VoteAverage float32 `json:"vote_average"`
*TVAggregateCreditsAppend
*TVSeasonCreditsAppend
*TVSeasonExternalIDsAppend
Expand Down
1 change: 1 addition & 0 deletions tv_seasons_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ func (suite *TMBDTestSuite) TestGetTVSeasonDetails() {
got, err := suite.client.GetTVSeasonDetails(gotID, 1, nil)
suite.Nil(err)
suite.Equal("Season 1", got.Name)
suite.True(got.VoteAverage > 0)
}

func (suite *TMBDTestSuite) TestGetTVSeasonDetailsFail() {
Expand Down

0 comments on commit 8384886

Please sign in to comment.