Update response struct
This commit is contained in:
parent
5368eaec3e
commit
69487e08a5
1 changed files with 32 additions and 36 deletions
68
gomdb.go
68
gomdb.go
|
@ -53,44 +53,40 @@ type SearchResponse struct {
|
||||||
totalResults int
|
totalResults int
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Ratings is a combination of all ratings
|
||||||
|
type Ratings struct {
|
||||||
|
Source string
|
||||||
|
Value string
|
||||||
|
}
|
||||||
|
|
||||||
// MovieResult is the result struct of an specific movie search
|
// MovieResult is the result struct of an specific movie search
|
||||||
type MovieResult struct {
|
type MovieResult struct {
|
||||||
Title string
|
Title string `json:"Title"`
|
||||||
Year string
|
Year string `json:"Year"`
|
||||||
Rated string
|
Rated string `json:"Rated"`
|
||||||
Released string
|
Released string `json:"Released"`
|
||||||
Runtime string
|
Runtime string `json:"Runtime"`
|
||||||
Genre string
|
Genre string `json:"Genre"`
|
||||||
Director string
|
Director string `json:"Director"`
|
||||||
Writer string
|
Writer string `json:"Writer"`
|
||||||
Actors string
|
Actors string `json:"Actors"`
|
||||||
Plot string
|
Plot string `json:"Plot"`
|
||||||
Language string
|
Language string `json:"Language"`
|
||||||
Country string
|
Country string `json:"Country"`
|
||||||
Awards string
|
Awards string `json:"Awards"`
|
||||||
Poster string
|
Poster string `json:"Poster"`
|
||||||
Metascore string
|
Ratings []Ratings `json:"Ratings"`
|
||||||
ImdbRating string
|
Metascore string `json:"Metascore"`
|
||||||
ImdbVotes string
|
ImdbRating string `json:"imdbRating"`
|
||||||
ImdbID string
|
ImdbVotes string `json:"imdbVotes"`
|
||||||
Type string
|
ImdbID string `json:"imdbID"`
|
||||||
TomatoMeter string
|
Type string `json:"Type"`
|
||||||
TomatoImage string
|
DVD string `json:"DVD"`
|
||||||
TomatoRating string
|
BoxOffice string `json:"BoxOffice"`
|
||||||
TomatoReviews string
|
Production string `json:"Production"`
|
||||||
TomatoFresh string
|
Website string `json:"Website"`
|
||||||
TomatoRotten string
|
Response string `json:"Response"`
|
||||||
TomatoConsensus string
|
Error string `json:"Error"`
|
||||||
TomatoUserMeter string
|
|
||||||
TomatoUserRating string
|
|
||||||
TomatoUserReviews string
|
|
||||||
TomatoURL string
|
|
||||||
DVD string
|
|
||||||
BoxOffice string
|
|
||||||
Production string
|
|
||||||
Website string
|
|
||||||
Response string
|
|
||||||
Error string
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// Search for movies given a Title and year, Year is optional you can pass nil
|
// Search for movies given a Title and year, Year is optional you can pass nil
|
||||||
|
|
Loading…
Reference in a new issue