fanart

package
v0.1.101 Latest Latest
Warning

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

Go to latest
Published: Apr 18, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// ClientID ...
	ClientID = "decb307ca800170b833c3061863974f3"
	// APIVersion ...
	APIVersion = "v3"
)

Variables

This section is empty.

Functions

func GetBestImage

func GetBestImage(old string, lists ...[]*Image) string

GetBestImage returns best image from multiple lists, according to the lang setting. Taking order of lists into account.

func GetBestShowImage

func GetBestShowImage(season string, isStrict bool, old string, lists ...[]*ShowImage) string

GetBestShowImage returns best image from multiple lists, according to the lang setting. Taking order of lists into account.

func GetHeader

func GetHeader() http.Header

func GetMultipleImage

func GetMultipleImage(old string, lists ...[]*Image) []string

GetMultipleImage returns multiple images in a list

func GetMultipleShowImage

func GetMultipleShowImage(season, old string, lists ...[]*ShowImage) []string

GetMultipleShowImage returns multiple images in a list

Types

type Disk

type Disk struct {
	Image
	Disc     string `json:"disc"`
	DiscType string `json:"disc_type"`
}

Disk ...

type Image

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

Image ...

type Movie

type Movie struct {
	Name            string   `json:"name"`
	TmdbID          string   `json:"tmdb_id"`
	ImdbID          string   `json:"imdb_id"`
	HDMovieClearArt []*Image `json:"hdmovieclearart"`
	MoviePoster     []*Image `json:"movieposter"`
	MovieBackground []*Image `json:"moviebackground"`
	MovieDisc       []*Disk  `json:"moviedisc"`
	MovieThumb      []*Image `json:"moviethumb"`
	MovieArt        []*Image `json:"movieart"`
	MovieClearArt   []*Image `json:"movieclearart"`
	MovieBanner     []*Image `json:"moviebanner"`
}

Movie ...

func GetMovie

func GetMovie(tmdbID int) (movie *Movie)

GetMovie ...

func (*Movie) ToListItemArt

func (fa *Movie) ToListItemArt(old *xbmc.ListItemArt) *xbmc.ListItemArt

ToListItemArt ...

type Show

type Show struct {
	Name           string       `json:"name"`
	TvdbID         string       `json:"thetvdb_id"`
	HDClearArt     []*ShowImage `json:"hdclearart"`
	ClearArt       []*ShowImage `json:"clearart"`
	TVPoster       []*ShowImage `json:"tvposter"`
	TVBanner       []*ShowImage `json:"tvbanner"`
	TVThumb        []*ShowImage `json:"tvthumb"`
	ShowBackground []*ShowImage `json:"showbackground"`
	SeasonPoster   []*ShowImage `json:"seasonposter"`
	SeasonThumb    []*ShowImage `json:"seasonthumb"`
	SeasonBanner   []*ShowImage `json:"seasonbanner"`
	CharacterArt   []*ShowImage `json:"characterart"`
}

Show ...

func GetShow

func GetShow(tvdbID int) (show *Show)

GetShow ...

func (*Show) ToEpisodeListItemArt

func (fa *Show) ToEpisodeListItemArt(season int, old *xbmc.ListItemArt) *xbmc.ListItemArt

ToEpisodeListItemArt ...

func (*Show) ToListItemArt

func (fa *Show) ToListItemArt(old *xbmc.ListItemArt) *xbmc.ListItemArt

ToListItemArt ...

func (*Show) ToSeasonListItemArt

func (fa *Show) ToSeasonListItemArt(season int, old *xbmc.ListItemArt) *xbmc.ListItemArt

ToSeasonListItemArt ...

type ShowImage

type ShowImage struct {
	Image
	Season string `json:"season"`
}

ShowImage ...

Jump to

Keyboard shortcuts

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