tmdb

package
v0.0.0-...-01b0788 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 2021 License: MIT Imports: 10 Imported by: 0

Documentation

Index

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL