Documentation ¶
Index ¶
- Constants
- func Get(endPoint string, params url.Values) (resp *napping.Response, err error)
- func GetBestImage(old string, lists ...[]*Image) string
- func GetBestShowImage(season, old string, lists ...[]*ShowImage) string
- type Disk
- type Image
- type Movie
- type Show
- func (z *Show) MarshalMsg(b []byte) (o []byte, err error)
- func (z *Show) Msgsize() (s int)
- func (fa *Show) ToEpisodeListItemArt(season int, old *xbmc.ListItemArt) *xbmc.ListItemArt
- func (fa *Show) ToListItemArt(old *xbmc.ListItemArt) *xbmc.ListItemArt
- func (fa *Show) ToSeasonListItemArt(season int, old *xbmc.ListItemArt) *xbmc.ListItemArt
- func (z *Show) UnmarshalMsg(bts []byte) (o []byte, err error)
- type ShowImage
Constants ¶
const ( // APIURL ... APIURL = "http://webservice.fanart.tv" // ClientID ... ClientID = "decb307ca800170b833c3061863974f3" // APIVersion ... APIVersion = "v3" )
Variables ¶
This section is empty.
Functions ¶
func GetBestImage ¶
GetBestImage returns best image from multiple lists, according to the lang setting. Taking order of lists into account.
func GetBestShowImage ¶
GetBestShowImage returns best image from multiple lists, according to the lang setting. Taking order of lists into account.
Types ¶
type Disk ¶
type Disk struct { ID string `json:"id"` URL string `json:"url"` Lang string `json:"lang"` Likes string `json:"likes"` Disc string `json:"disc"` DiscType string `json:"disc_type"` }
Disk ...
func (*Disk) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Image ¶
type Image struct { ID string `json:"id"` URL string `json:"url"` Lang string `json:"lang"` Likes string `json:"likes"` }
Image ...
func (*Image) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
type Movie ¶
type Movie struct { Name string `json:"name"` TmdbID string `json:"tmdb_id"` ImdbID string `json:"imdb_id"` HDMovieClearArt []*Image `json:"hdmovieclearart"` HDMovieLogo []*Image `json:"hdmovielogo"` MoviePoster []*Image `json:"movieposter"` MovieBackground []*Image `json:"moviebackground"` MovieDisc []*Disk `json:"moviedisc"` MovieThumb []*Image `json:"moviethumb"` MovieArt []*Image `json:"movieart"` MovieLogo []*Image `json:"movielogo"` MovieBanner []*Image `json:"moviebanner"` }
Movie ...
func (*Movie) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Movie) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
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"` HdtvLogo []*ShowImage `json:"hdtvlogo"` ClearLogo []*ShowImage `json:"clearlogo"` 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 (*Show) MarshalMsg ¶
MarshalMsg implements msgp.Marshaler
func (*Show) Msgsize ¶
Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message
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 ...