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 ¶
UpdateShow updates the give Database show from TVDB
Click to show internal directories.
Click to hide internal directories.