tvdb

package
v0.0.0-...-0492f6a Latest Latest
Warning

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

Go to latest
Published: Apr 2, 2026 License: MIT Imports: 12 Imported by: 1

Documentation

Index

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

func (t *TvDB) GetDetails(i any, log *logrus.Entry) error

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

func (t *TvDB) Init(p []byte) error

Init implements the module interface

func (*TvDB) InitWithParams

func (t *TvDB) InitWithParams(params *Params) error

InitWithParams configures the module

func (*TvDB) Name

func (t *TvDB) Name() string

Name implements the Module interface

func (*TvDB) Status

func (t *TvDB) Status() (polochon.ModuleStatus, error)

Status implements the Module interface

Jump to

Keyboard shortcuts

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