tvmeta

package
v0.0.0-...-eb296cb Latest Latest
Warning

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

Go to latest
Published: Jul 29, 2024 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrNilResp = errors.New("nil resp error")

Functions

func GetURLByPosterPath

func GetURLByPosterPath(posterPath string) string

Types

type AllSeasonsWithDetails

type AllSeasonsWithDetails struct {
	Details *TvShowDetails
	Seasons []*TVShowSeasonEpisodes
}

type Client

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

func New

func New(tmdbClient tmdbClient) *Client

func (*Client) SearchTVShows

func (c *Client) SearchTVShows(ctx context.Context, query string) (*TVShows, error)

func (*Client) TVShowAllSeasonsWithDetails

func (c *Client) TVShowAllSeasonsWithDetails(ctx context.Context, id int, language string) (*AllSeasonsWithDetails, error)

func (*Client) TVShowDetails

func (c *Client) TVShowDetails(ctx context.Context, id int) (*TvShowDetails, error)

func (*Client) TVShowEpisodesBySeason

func (c *Client) TVShowEpisodesBySeason(ctx context.Context, id int, seasonNumber int, language string) (*TVShowSeasonEpisodes, error)

type TVShow

type TVShow struct {
	ID           int
	Name         string
	Rating       float32
	Description  string
	PosterLink   string
	FirstAirDate string
	Popularity   float32
}

type TVShowEpisode

type TVShowEpisode struct {
	Number      int
	Name        string
	Description string
	Rating      float32
}

type TVShowSeasonEpisodes

type TVShowSeasonEpisodes struct {
	SeasonNumber int
	Episodes     []*TVShowEpisode
}

type TVShows

type TVShows struct {
	Language string
	TVShows  []*TVShow
}

type TvShowDetails

type TvShowDetails struct {
	ID         int
	Title      string
	PosterLink string
	SeasonsCnt int
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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