tvdb

package
v0.0.0-...-21615fd Latest Latest
Warning

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

Go to latest
Published: Mar 22, 2015 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetClient

func SetClient(c *http.Client) func(*TvdbIndexer)

SetClient set's the httpclient the Indexer will use.

Example:

NewTvdbIndexer(apikey, SetClient(httpclient))

Types

type TvdbIndexer

type TvdbIndexer struct {
	// contains filtered or unexported fields
}

TvdbIndexer implements the Indexer interface

func NewTestTvdbIndexer

func NewTestTvdbIndexer(options ...func(*TvdbIndexer)) (*TvdbIndexer, *httptest.Server)

NewTestTvdbIndexer returns a new configured indexer

func NewTvdbIndexer

func NewTvdbIndexer(apiKey string, options ...func(*TvdbIndexer)) *TvdbIndexer

NewTvdbIndexer returns a new configured indexer

func (*TvdbIndexer) GetShow

func (t *TvdbIndexer) GetShow(tvdbidstr string) (*db.Show, error)

GetShow gets TVDB information for the given ID.

func (*TvdbIndexer) Name

func (t *TvdbIndexer) Name() string

Name returns the string name of this indexer

func (*TvdbIndexer) Search

func (t *TvdbIndexer) Search(term string) ([]db.Show, error)

Search searches TVDB for all shows matching the given string.

func (*TvdbIndexer) UpdateShow

func (t *TvdbIndexer) UpdateShow(dbshow *db.Show, episodes []db.Episode) error

UpdateShow updates the give Database show from TVDB

Jump to

Keyboard shortcuts

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