Documentation ¶
Overview ¶
Package tmdb provides a good coverage for the TMDB API, supporting movies, shows, people and images.
Index ¶
- Constants
- Variables
- type Cast
- type Collection
- type Config
- type Credits
- type Crew
- type Episode
- type Genre
- type Genres
- type Keyword
- type Keywords
- type Movie
- type MovieResult
- type Network
- type Person
- type Release
- type ReleaseCountry
- type Releases
- type Season
- type TMDB
- func (m *TMDB) Backdrop(backdropPath string, size string) *url.URL
- func (m *TMDB) EpisodeCredits(tvid, season, episode int) (Credits, error)
- func (m *TMDB) EpisodeDetail(tvid, season, episode int) (Episode, error)
- func (m *TMDB) MovieCredits(tmid int) (Credits, error)
- func (m *TMDB) MovieDetail(tmid int) (Movie, error)
- func (m *TMDB) MovieGenre(id int) string
- func (m *TMDB) MovieGenreNames() []string
- func (m *TMDB) MovieKeywordNames(id int) ([]string, error)
- func (m *TMDB) MovieReleaseType(tmid int, country string, releaseType int) (Release, error)
- func (m *TMDB) MovieReleases(tmid int) (map[string][]Release, error)
- func (m *TMDB) MovieSearch(q string) ([]MovieResult, error)
- func (m *TMDB) OriginalPoster(posterPath string) *url.URL
- func (m *TMDB) PersonDetail(peid int) (Person, error)
- func (m *TMDB) PersonProfile(profilePath string, size string) *url.URL
- func (m *TMDB) Poster(posterPath string, size string) *url.URL
- func (m *TMDB) TVDetail(tvid int) (TV, error)
- func (m *TMDB) TVGenre(id int) string
- func (m *TMDB) TVGenreNames() []string
- func (m *TMDB) TVKeywordNames(tvid int) ([]string, error)
- func (m *TMDB) TVSearch(q string) ([]TVResult, error)
- type TV
- type TVResult
Constants ¶
View Source
const ( Backdrop300 = "w300" Backdrop780 = "w780" Backdrop1280 = "w1280" BackdropOriginal = "original" )
View Source
const ( Poster92 = "w92" Poster154 = "w154" Poster185 = "w185" Poster342 = "w342" Poster500 = "w500" Poster780 = "w780" PosterOriginal = "original" )
View Source
const ( Profile45 = "w45" Profile185 = "w185" Profile632 = "h632" ProfileOriginal = "original" )
View Source
const ( TypePremiere = iota + 1 TypeTheatricalLimited TypeTheatrical TypeDigital TypePhysical TypeTV )
https://developers.themoviedb.org/3/movies/get-movie-release-dates
View Source
const (
// ISO 639-1
LanguageEnglish = "en-US"
)
Variables ¶
View Source
var (
ErrReleaseTypeNotFound = errors.New("release type not found")
)
Functions ¶
This section is empty.
Types ¶
type Collection ¶
type Episode ¶
type Episode struct { ID int `json:"id"` // unique episode ID StillPath string `json:"still_path"` AirDate string `json:"air_date"` Name string `json:"name"` Overview string `json:"overview"` SeasonNumber int `json:"season_number"` EpisodeNumber int `json:"episode_number"` VoteAverage float32 `json:"vote_average"` VoteCount int `json:"vote_count"` }
type Movie ¶
type Movie struct { ID int `json:"id"` // unique movie ID IMDB_ID string `json:"imdb_id"` Adult bool `json:"adult"` BackdropPath string `json:"backdrop_path"` Collection Collection `json:"belongs_to_collection"` Genres []Genre `json:"genres"` OriginalLanguage string `json:"original_language"` OriginalTitle string `json:"original_title"` Overview string `json:"overview"` Popularity float32 `json:"populartity"` PosterPath string `json:"poster_path"` ReleaseDate string `json:"release_date"` Tagline string `json:"tagline"` Title string `json:"title"` Video bool `json:"video"` VoteAverage float32 `json:"vote_average"` VoteCount int `json:"vote_count"` Budget int64 `json:"budget"` Revenue int64 `json:"revenue"` Runtime int `json:"runtime"` }
type MovieResult ¶
type Person ¶
type Person struct { ID int `json:"id"` // unique person ID IMDB_ID string `json:"imdb_id"` Name string `json:"name"` ProfilePath string `json:"profile_path"` Birthday string `json:"birthday"` Deathday string `json:"deathday"` Biography string `json:"biography"` Birthplace string `json:"place_of_birth"` }
type ReleaseCountry ¶
type Releases ¶
type Releases struct { ID int `json:"id"` Results []ReleaseCountry `json:"results"` }
type TMDB ¶
type TMDB struct {
// contains filtered or unexported fields
}
func (*TMDB) EpisodeCredits ¶
func (*TMDB) EpisodeDetail ¶
func (*TMDB) MovieGenre ¶
func (*TMDB) MovieGenreNames ¶
func (*TMDB) MovieReleaseType ¶
func (*TMDB) MovieSearch ¶
func (m *TMDB) MovieSearch(q string) ([]MovieResult, error)
func (*TMDB) TVGenreNames ¶
type TV ¶
type TV struct { ID int `json:"id"` // unique tv ID BackdropPath string `json:"backdrop_path"` PosterPath string `json:"poster_path"` Genres []Genre `json:"genres"` FirstAirDate string `json:"first_air_date"` LastAirDate string `json:"last_air_date"` Name string `json:"name"` OriginalName string `json:"original_name"` OriginalLanguage string `json:"original_language"` Overview string `json:"overview"` Networks []Network `json:"networks"` NumberOfEpisodes int `json:"number_of_episodes"` NumberOfSeasons int `json:"number_of_seasons"` Popularity float32 `json:"populartity"` Seasons []Season `json:"seasons"` Status string `json:"status"` Tagline string `json:"tagline"` Type string `json:"type"` VoteAverage float32 `json:"vote_average"` VoteCount int `json:"vote_count"` }
Click to show internal directories.
Click to hide internal directories.