Documentation
¶
Index ¶
- type Provider
- func (p *Provider) Capabilities() provider.ProviderCapabilities
- func (p *Provider) ConfigSchema() provider.ConfigSchema
- func (p *Provider) Configure(config map[string]interface{}) error
- func (p *Provider) Description() string
- func (p *Provider) Fetch(ctx context.Context, request provider.FetchRequest) (*provider.Metadata, error)
- func (p *Provider) Name() string
- func (p *Provider) SaveCache() error
- func (p *Provider) SupportedVariables() []provider.TemplateVariable
- type TMDBClient
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Provider ¶
type Provider struct {
// contains filtered or unexported fields
}
Provider implements the provider.Provider interface for TMDB
func (*Provider) Capabilities ¶
func (p *Provider) Capabilities() provider.ProviderCapabilities
Capabilities returns what this provider can do
func (*Provider) ConfigSchema ¶
func (p *Provider) ConfigSchema() provider.ConfigSchema
ConfigSchema returns the configuration schema for this provider
func (*Provider) Description ¶
Description returns the provider description
func (*Provider) Fetch ¶
func (p *Provider) Fetch(ctx context.Context, request provider.FetchRequest) (*provider.Metadata, error)
Fetch retrieves metadata based on the request
func (*Provider) SupportedVariables ¶
func (p *Provider) SupportedVariables() []provider.TemplateVariable
SupportedVariables returns the template variables this provider supports
type TMDBClient ¶
type TMDBClient interface {
SearchMovie(name string, options map[string]string) (*tmdb.MovieSearchResults, error)
SearchTv(name string, options map[string]string) (*tmdb.TvSearchResults, error)
GetMovieInfo(id int, options map[string]string) (*tmdb.Movie, error)
GetTvInfo(id int, options map[string]string) (*tmdb.TV, error)
GetTvSeasonInfo(showID, seasonID int, options map[string]string) (*tmdb.TvSeason, error)
GetTvEpisodeInfo(showID, seasonNum, episodeNum int, options map[string]string) (*tmdb.TvEpisode, error)
}
TMDBClient interface for testing (matches *tmdb.TMDb exactly)
Click to show internal directories.
Click to hide internal directories.