Files
nabarr/media/omdb/struct.go
l3uddz ce3807b819 initial code (#6)
* initial code commit
2021-02-14 16:18:26 +00:00

41 lines
1.5 KiB
Go

package omdb
type rating struct {
Source string `json:"Source,omitempty"`
Value string `json:"Value,omitempty"`
}
type lookupResponse struct {
Title string `json:"Title,omitempty"`
Year string `json:"Year,omitempty"`
Rated string `json:"Rated,omitempty"`
Released string `json:"Released,omitempty"`
Runtime string `json:"Runtime,omitempty"`
Genre string `json:"Genre,omitempty"`
Director string `json:"Director,omitempty"`
Writer string `json:"Writer,omitempty"`
Actors string `json:"Actors,omitempty"`
Plot string `json:"Plot,omitempty"`
Language string `json:"Language,omitempty"`
Country string `json:"Country,omitempty"`
Awards string `json:"Awards,omitempty"`
Poster string `json:"Poster,omitempty"`
Ratings []rating `json:"Ratings,omitempty"`
Metascore string `json:"Metascore,omitempty"`
ImdbRating string `json:"imdbRating,omitempty"`
ImdbVotes string `json:"imdbVotes,omitempty"`
ImdbID string `json:"imdbID,omitempty"`
Type string `json:"Type,omitempty"`
DVD string `json:"DVD,omitempty"`
BoxOffice string `json:"BoxOffice,omitempty"`
Production string `json:"Production,omitempty"`
Website string `json:"Website,omitempty"`
Response string `json:"Response,omitempty"`
}
type Item struct {
Metascore int `json:"Metascore,omitempty"`
RottenTomatoes int `json:"RottenTomatoes,omitempty"`
ImdbRating float64 `json:"ImdbRating,omitempty"`
}