tvdb

package
v0.0.0-...-46d964f Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2020 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Package tvdb implements a metadata provider

Index

Constants

View Source
const (
	// Provider is the provider enum entry for this provider
	Provider = int(api.Media_TVDB)

	// ProviderImageEndpoint is the image endpoint for this provider
	ProviderImageEndpoint = "https://www.thetvdb.com/banners/"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client struct {
	TVDBclient *tvdb.Client
	// contains filtered or unexported fields
}

Client implements the providerapi interface

func NewClient

func NewClient(c *Config) (*Client, error)

NewClient returns a tvdb client

func (*Client) GetEpisodes

func (c *Client) GetEpisodes(series *providerapi.Series) ([]providerapi.Episode, error)

GetEpisodes returns a list of all the episodes in a series

func (*Client) GetSeries

func (c *Client) GetSeries(mediaID string, mediaType api.Media_MediaType, strid string) (providerapi.Series, error)

GetSeries returns a series

type Config

type Config struct {
	// APIKey is a tvdb api key
	APIKey string

	// UserKey is a user key for tvdb
	UserKey string

	// Username is your tvdb username
	Username string
}

Config is a tvdb config

Jump to

Keyboard shortcuts

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