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