tmdb

package
v1.16.0 Latest Latest
Warning

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

Go to latest
Published: Feb 11, 2026 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

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 New

func New() *Provider

New creates a new TMDB provider instance

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) Configure

func (p *Provider) Configure(config map[string]interface{}) error

Configure applies configuration to the provider

func (*Provider) Description

func (p *Provider) Description() string

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) Name

func (p *Provider) Name() string

Name returns the provider name

func (*Provider) SaveCache

func (p *Provider) SaveCache() error

SaveCache persists the cache to disk

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)

Jump to

Keyboard shortcuts

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