tvdb

package
v0.0.0-...-29a3764 Latest Latest
Warning

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

Go to latest
Published: Jun 4, 2020 License: GPL-3.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Actor

type Actor struct {
	ID        string `xml:"id"`
	Image     string `xml:"Image"`
	Name      string `xml:"Name"`
	Role      string `xml:"Role"`
	SortOrder int    `xml:"SortOrder"`
}

Actor ...

func (*Actor) MarshalMsg

func (z *Actor) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Actor) Msgsize

func (z *Actor) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Actor) UnmarshalMsg

func (z *Actor) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Banner struct {
	ID            string `xml:"id"`
	BannerPath    string `xml:"BannerPath"`
	BannerType    string `xml:"BannerType"`
	BannerType2   string `xml:"BannerType2"`
	Colors        string `xml:"Colors"`
	Language      string `xml:"Language"`
	Rating        string `xml:"Rating"`
	RatingCount   int    `xml:"RatingCount"`
	SeriesName    string `xml:"SeriesName"`
	ThumbnailPath string `xml:"ThumbnailPath"`
	VignettePath  string `xml:"VignettePath"`
	Season        int    `xml:"Season,omitempty"`
}

Banner ...

func (*Banner) MarshalMsg

func (z *Banner) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Banner) Msgsize

func (z *Banner) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Banner) UnmarshalMsg

func (z *Banner) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type BannersByRating

type BannersByRating []*Banner

BannersByRating ...

func (BannersByRating) Len

func (a BannersByRating) Len() int

func (BannersByRating) Less

func (a BannersByRating) Less(i, j int) bool

func (BannersByRating) MarshalMsg

func (z BannersByRating) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (BannersByRating) Msgsize

func (z BannersByRating) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (BannersByRating) Swap

func (a BannersByRating) Swap(i, j int)

func (*BannersByRating) UnmarshalMsg

func (z *BannersByRating) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type BySeasonAndEpisodeNumber

type BySeasonAndEpisodeNumber []*Episode

BySeasonAndEpisodeNumber ...

func (BySeasonAndEpisodeNumber) Len

func (a BySeasonAndEpisodeNumber) Len() int

func (BySeasonAndEpisodeNumber) Less

func (a BySeasonAndEpisodeNumber) Less(i, j int) bool

func (BySeasonAndEpisodeNumber) MarshalMsg

func (z BySeasonAndEpisodeNumber) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (BySeasonAndEpisodeNumber) Msgsize

func (z BySeasonAndEpisodeNumber) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (BySeasonAndEpisodeNumber) Swap

func (a BySeasonAndEpisodeNumber) Swap(i, j int)

func (*BySeasonAndEpisodeNumber) UnmarshalMsg

func (z *BySeasonAndEpisodeNumber) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Episode

type Episode struct {
	ID            string `xml:"id"`
	Director      string `xml:"Director"`
	EpisodeName   string `xml:"EpisodeName"`
	EpisodeNumber int    `xml:"EpisodeNumber"`
	FirstAired    string `xml:"FirstAired"`
	GuestStars    string `xml:"GuestStars"`
	ImdbID        string `xml:"IMDB_ID"`
	Language      string `xml:"Language"`
	Overview      string `xml:"Overview"`
	Rating        string `xml:"Rating"`
	RatingCount   string `xml:"RatingCount"`
	SeasonNumber  int    `xml:"SeasonNumber"`
	Writer        string `xml:"Writer"`
	FileName      string `xml:"filename"`
	LastUpdated   string `xml:"lastupdated"`
	SeasonID      string `xml:"seasonid"`
	SeriesID      string `xml:"seriesid"`
	ThumbHeight   string `xml:"thumb_height"`
	ThumbWidth    string `xml:"thumb_width"`

	AbsoluteNumber       int    `xml:"-"`
	AbsoluteNumberString string `xml:"absolute_number"`
}

Episode ...

func (*Episode) MarshalMsg

func (z *Episode) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Episode) Msgsize

func (z *Episode) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Episode) ToListItem

func (episode *Episode) ToListItem(show *Show) *xbmc.ListItem

ToListItem ...

func (*Episode) UnmarshalMsg

func (z *Episode) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type EpisodeList

type EpisodeList []*Episode

EpisodeList ...

func (EpisodeList) MarshalMsg

func (z EpisodeList) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (EpisodeList) Msgsize

func (z EpisodeList) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (EpisodeList) ToListItems

func (episodes EpisodeList) ToListItems(show *Show) []*xbmc.ListItem

ToListItems ...

func (*EpisodeList) UnmarshalMsg

func (z *EpisodeList) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Season

type Season struct {
	Season   int
	Episodes EpisodeList
}

Season ...

func (*Season) GetEpisode

func (s *Season) GetEpisode(number int) *Episode

GetEpisode ...

func (*Season) MarshalMsg

func (z *Season) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Season) Msgsize

func (z *Season) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Season) ToListItem

func (season *Season) ToListItem(show *Show) *xbmc.ListItem

ToListItem ...

func (*Season) UnmarshalMsg

func (z *Season) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type SeasonList

type SeasonList []*Season

SeasonList ...

func (SeasonList) Len

func (s SeasonList) Len() int

func (SeasonList) Less

func (s SeasonList) Less(i, j int) bool

func (SeasonList) MarshalMsg

func (z SeasonList) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (SeasonList) Msgsize

func (z SeasonList) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (SeasonList) Swap

func (s SeasonList) Swap(i, j int)

func (SeasonList) ToListItems

func (seasons SeasonList) ToListItems(show *Show) []*xbmc.ListItem

ToListItems ...

func (*SeasonList) UnmarshalMsg

func (z *SeasonList) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

type Show

type Show struct {
	ID            int    `xml:"id"`
	ActorsSimple  string `xml:"Actors"`
	AirsDayOfWeek string `xml:"Airs_DayOfWeek"`
	AirsTime      string `xml:"Airs_Time"`
	ContentRating string `xml:"ContentRating"`
	FirstAired    string `xml:"FirstAired"`
	Genre         string `xml:"Genre"`
	ImdbID        string `xml:"IMDB_ID"`
	Language      string `xml:"Language"`
	Network       string `xml:"Network"`
	NetworkID     string `xml:"NetworkID"`
	Overview      string `xml:"Overview"`
	Rating        string `xml:"Rating"`
	RatingCount   string `xml:"RatingCount"`
	RuntimeString string `xml:"Runtime"`
	SeriesID      string `xml:"SeriesID"`
	SeriesName    string `xml:"SeriesName"`
	Status        string `xml:"Status"`
	Banner        string `xml:"banner"`
	FanArt        string `xml:"fanart"`
	LastUpdated   int    `xml:"lastupdated"`
	Poster        string `xml:"poster"`

	Runtime int `xml:"-"`

	Seasons SeasonList `xml:"-"`
	Banners []*Banner  `xml:"-"`
	Actors  []*Actor   `xml:"-"`
}

Show ...

func GetShow

func GetShow(tvdbID int, language string) (*Show, error)

GetShow ...

func (*Show) GetSeason

func (s *Show) GetSeason(number int) *Season

GetSeason ...

func (*Show) MarshalMsg

func (z *Show) MarshalMsg(b []byte) (o []byte, err error)

MarshalMsg implements msgp.Marshaler

func (*Show) Msgsize

func (z *Show) Msgsize() (s int)

Msgsize returns an upper bound estimate of the number of bytes occupied by the serialized message

func (*Show) UnmarshalMsg

func (z *Show) UnmarshalMsg(bts []byte) (o []byte, err error)

UnmarshalMsg implements msgp.Unmarshaler

Jump to

Keyboard shortcuts

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