diff --git a/gomdb.go b/gomdb.go index 9ae6a56..859bd3c 100644 --- a/gomdb.go +++ b/gomdb.go @@ -53,44 +53,40 @@ type SearchResponse struct { 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 type MovieResult struct { - Title string - Year string - Rated string - Released string - Runtime string - Genre string - Director string - Writer string - Actors string - Plot string - Language string - Country string - Awards string - Poster string - Metascore string - ImdbRating string - ImdbVotes string - ImdbID string - Type string - TomatoMeter string - TomatoImage string - TomatoRating string - TomatoReviews string - TomatoFresh string - TomatoRotten string - TomatoConsensus string - TomatoUserMeter string - TomatoUserRating string - TomatoUserReviews string - TomatoURL string - DVD string - BoxOffice string - Production string - Website string - Response string - Error string + Title string `json:"Title"` + Year string `json:"Year"` + Rated string `json:"Rated"` + Released string `json:"Released"` + Runtime string `json:"Runtime"` + Genre string `json:"Genre"` + Director string `json:"Director"` + Writer string `json:"Writer"` + Actors string `json:"Actors"` + Plot string `json:"Plot"` + Language string `json:"Language"` + Country string `json:"Country"` + Awards string `json:"Awards"` + Poster string `json:"Poster"` + Ratings []Ratings `json:"Ratings"` + Metascore string `json:"Metascore"` + ImdbRating string `json:"imdbRating"` + ImdbVotes string `json:"imdbVotes"` + ImdbID string `json:"imdbID"` + Type string `json:"Type"` + DVD string `json:"DVD"` + BoxOffice string `json:"BoxOffice"` + Production string `json:"Production"` + Website string `json:"Website"` + Response string `json:"Response"` + Error string `json:"Error"` } // Search for movies given a Title and year, Year is optional you can pass nil