Documentation ¶
Index ¶
- Constants
- Variables
- type Params
- type TmDB
- func (t *TmDB) GetDetails(i interface{}, log *logrus.Entry) error
- func (t *TmDB) Init(p []byte) error
- func (t *TmDB) InitWithParams(params *Params) error
- func (t *TmDB) Name() string
- func (t *TmDB) SearchMovie(key string, log *logrus.Entry) ([]*polochon.Movie, error)
- func (t *TmDB) SearchShow(key string, log *logrus.Entry) ([]*polochon.Show, error)
- func (t *TmDB) Status() (polochon.ModuleStatus, error)
Constants ¶
View Source
const (
TmDBimageBaseURL = "https://image.tmdb.org/t/p/original"
)
API constants
Variables ¶
View Source
var ( ErrInvalidArgument = errors.New("tmdb: invalid argument") ErrMissingArgument = errors.New("tmdb: missing argument") ErrNoMovieFound = errors.New("tmdb: movie not found") ErrNoMovieTitle = errors.New("tmdb: can not search for a movie with no title") ErrNoMovieImDBID = errors.New("tmdb: can not search for a movie with no imdb") ErrFailedToGetDetails = errors.New("tmdb: failed to get movie details") )
TmDB errors
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct {
APIKey string `yaml:"apikey"`
}
Params represents the module params
type TmDB ¶
type TmDB struct {
// contains filtered or unexported fields
}
TmDB implents the Detailer interface
func (*TmDB) GetDetails ¶
GetDetails implements the Detailer interface
func (*TmDB) InitWithParams ¶
InitWithParams configures the module
func (*TmDB) SearchMovie ¶
SearchMovie implements the polochon Searcher interface
func (*TmDB) SearchShow ¶
SearchShow implements the polochon Searcher interface Not implemented
Click to show internal directories.
Click to hide internal directories.