media: add Language and Country to Omdb struct (#13)
This commit is contained in:
@@ -69,5 +69,7 @@ func (c *Client) GetItem(imdbId string) (*Item, error) {
|
||||
RottenTomatoes: rt,
|
||||
ImdbRating: util.Atof64(b.ImdbRating, 0.0),
|
||||
ImdbVotes: util.Atoi(b.ImdbVotes, 0),
|
||||
Language: b.Language,
|
||||
Country: b.Country,
|
||||
}, nil
|
||||
}
|
||||
|
||||
@@ -38,4 +38,6 @@ type Item struct {
|
||||
RottenTomatoes int `json:"RottenTomatoes,omitempty"`
|
||||
ImdbRating float64 `json:"ImdbRating,omitempty"`
|
||||
ImdbVotes int `json:"ImdbVotes,omitempty"`
|
||||
Language string `json:"Language,omitempty"`
|
||||
Country string `json:"Country,omitempty"`
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user