importer

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EpisodeOrderUnknown = iota
	EpisodeOrderDefault
	EpisodeOrderDVD
	EpisodeOrderAbsolute
)

Variables

View Source
var DefaultOptions = &Options{
	Language:     "eng",
	TmdbImageURL: "https://image.tmdb.org/t/p/original",
}

Functions

This section is empty.

Types

type Episode

type Episode struct {
	ID          int64
	Title       string
	Description string
	Airdate     string
	Season      int
	Episode     int
	Absolute    int
}

type Importer

type Importer struct {
	Log    *zap.SugaredLogger
	Opts   *Options
	Tmdb   *tmdb.Client
	Tvdb   *tvdb.Client
	Fanart *fanart.Fanart
}

func New

func New(opts *Options) (*Importer, error)

func (*Importer) Series

func (i *Importer) Series(tvdbid int64) (*Series, error)

func (*Importer) SeriesEpisodes

func (i *Importer) SeriesEpisodes(tvdbid int64, episodeOrder int) ([]*Episode, error)

func (*Importer) SeriesImages

func (i *Importer) SeriesImages(tvdbid int64) ([]string, []string, error)

func (*Importer) SeriesUpdated

func (i *Importer) SeriesUpdated(since int64) ([]int64, error)

func (*Importer) TmdbID

func (i *Importer) TmdbID(tvdbid int64) (int, error)

type Options

type Options struct {
	Logger   *zap.SugaredLogger
	Language string

	TvdbKey string

	TmdbToken string
	// TmdbURL      string
	TmdbImageURL string

	FanartKey string
	FanartURL string
}

type Series

type Series struct {
	ID          int64
	Title       string
	Description string
	Airdate     string
	Status      string
	Language    string
}

Jump to

Keyboard shortcuts

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