Documentation ¶
Index ¶
- type TMDBProvider
- func (tmdbProvider *TMDBProvider) GetEpisode(tvShowMediaIds MediaIds, seasonNb int, episodeNb int) (Episode, error)
- func (tmdbProvider *TMDBProvider) GetMovie(m MediaIds) (Movie, error)
- func (tmdbProvider *TMDBProvider) GetName() string
- func (tmdbProvider *TMDBProvider) GetOrder() int
- func (tmdbProvider *TMDBProvider) GetRecentlyAiredEpisodes(tvShow TvShow) ([]Episode, error)
- func (tmdbProvider *TMDBProvider) GetSeasonEpisodeList(show TvShow, seasonNumber int) ([]Episode, error)
- func (tmdbProvider *TMDBProvider) GetShow(tvShow MediaIds) (TvShow, error)
- func (tmdbProvider *TMDBProvider) Status() (Module, error)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TMDBProvider ¶
type TMDBProvider struct { Client *tmdb.TMDb Order int }
func New ¶
func New(apiKey string, order string) (tmdbProvider *TMDBProvider, err error)
Create new instance of the tmdb info provider
func (*TMDBProvider) GetEpisode ¶
func (tmdbProvider *TMDBProvider) GetEpisode(tvShowMediaIds MediaIds, seasonNb int, episodeNb int) (Episode, error)
Get specific episode from tvshow
func (*TMDBProvider) GetMovie ¶
func (tmdbProvider *TMDBProvider) GetMovie(m MediaIds) (Movie, error)
func (*TMDBProvider) GetName ¶
func (tmdbProvider *TMDBProvider) GetName() string
func (*TMDBProvider) GetOrder ¶
func (tmdbProvider *TMDBProvider) GetOrder() int
func (*TMDBProvider) GetRecentlyAiredEpisodes ¶
func (tmdbProvider *TMDBProvider) GetRecentlyAiredEpisodes(tvShow TvShow) ([]Episode, error)
Get list of episodes of a show aired less than RECENTLY_AIRED_EPISODES_INTERVAL days ago
func (*TMDBProvider) GetSeasonEpisodeList ¶
func (tmdbProvider *TMDBProvider) GetSeasonEpisodeList(show TvShow, seasonNumber int) ([]Episode, error)
func (*TMDBProvider) GetShow ¶
func (tmdbProvider *TMDBProvider) GetShow(tvShow MediaIds) (TvShow, error)
Get show from name
func (*TMDBProvider) Status ¶
func (tmdbProvider *TMDBProvider) Status() (Module, error)
Check if Provider is alive
Click to show internal directories.
Click to hide internal directories.