fanart

package
v0.3.0 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Fanart

type Fanart struct {
	ApiKey string
	// contains filtered or unexported fields
}

func New

func New(url, apiKey string) *Fanart

func (*Fanart) GetMovieImages

func (f *Fanart) GetMovieImages(id string) (*FanartShowImages, error)

func (*Fanart) GetShowImages

func (f *Fanart) GetShowImages(id string) (*FanartShowImages, error)

type FanartImage

type FanartImage struct {
	ID    string `json:"id"`
	URL   string `json:"url"`
	Lang  string `json:"lang"`
	Likes string `json:"likes"`
}

type FanartMovieImages

type FanartMovieImages struct {
	Name        string        `json:"name"`
	TmdbID      string        `json:"tmdb_id"`
	ImdbID      string        `json:"imdb_id"`
	Posters     []FanartImage `json:"movieposter"`
	Backgrounds []FanartImage `json:"moviebackground"`
	Status      string        `json:"status"`
	Erorr       string        `json:"error message"`
}

type FanartShowImages

type FanartShowImages struct {
	Name        string        `json:"name"`
	TvdbID      string        `json:"thetvdb_id"`
	Posters     []FanartImage `json:"tvposter"`
	Backgrounds []FanartImage `json:"showbackground"`
	Status      string        `json:"status"`
	Erorr       string        `json:"error message"`
}

Jump to

Keyboard shortcuts

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