tvdb

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Nov 2, 2022 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrItemNotFound = errors.New("not found")
)

Functions

This section is empty.

Types

type Client

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

func New

func New(cfg *Config) *Client

func (*Client) GetItem

func (c *Client) GetItem(tvdbId string) (*Item, error)

type Config

type Config struct {
	ApiKey string `yaml:"api_key"`

	Verbosity string `yaml:"verbosity,omitempty"`
}

type Item

type Item struct {
	Runtime         int      `json:"Runtime,omitempty"`
	Language        string   `json:"Language,omitempty"`
	Network         string   `json:"Network,omitempty"`
	Genre           []string `json:"Genre,omitempty"`
	AirsDayOfWeek   string   `json:"AirsDayOfWeek,omitempty"`
	SiteRating      float64  `json:"SiteRating,omitempty"`
	SiteRatingCount int      `json:"SiteRatingCount,omitempty"`
}

Jump to

Keyboard shortcuts

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