Documentation
¶
Index ¶
- Variables
- type Params
- type TvDB
- func (t *TvDB) GetDetails(i any, log *logrus.Entry) error
- func (t *TvDB) GetShowCalendar(show *polochon.Show, log *logrus.Entry) (*polochon.ShowCalendar, error)
- func (t *TvDB) Init(p []byte) error
- func (t *TvDB) InitWithParams(params *Params) error
- func (t *TvDB) Name() string
- func (t *TvDB) Status() (polochon.ModuleStatus, error)
Constants ¶
This section is empty.
Variables ¶
View Source
var ( ErrShowNotFound = errors.New("tvdb: show not found") ErrShowImageNotFound = errors.New("tvdb: show image not found") ErrNotEnoughArguments = errors.New("tvdb: not enough arguments to perform search") ErrInvalidArgument = errors.New("tvdb: invalid argument type") ErrMissingShowEpisodeInformations = errors.New("tvdb: missing show episode informations to get details") ErrFailedToUpdateEpisode = errors.New("tvdb: failed to update episode details") )
Errors
Functions ¶
This section is empty.
Types ¶
type Params ¶
type Params struct {
APIKey string `yaml:"api_key"`
UserID string `yaml:"user_id"`
Username string `yaml:"username"`
}
Params represents the module params
type TvDB ¶
type TvDB struct {
// contains filtered or unexported fields
}
TvDB implents the Detailer interface
func (*TvDB) GetDetails ¶
GetDetails implements the Detailer interface
func (*TvDB) GetShowCalendar ¶
func (t *TvDB) GetShowCalendar(show *polochon.Show, log *logrus.Entry) (*polochon.ShowCalendar, error)
GetShowCalendar implements the Calendar interface
func (*TvDB) InitWithParams ¶
InitWithParams configures the module
Click to show internal directories.
Click to hide internal directories.