package itv

import "41.neocities.org/media/itv"

Index

Types

type DiscoveryTitle

type DiscoveryTitle struct {
	LatestAvailableVersion struct {
		PlaylistUrl string
	}
	Brand *struct {
		Title string
	}
	EpisodeNumber  int
	ProductionYear int
	SeriesNumber   int
	Title          string
}

func (*DiscoveryTitle) Playlist

func (d *DiscoveryTitle) Playlist() (*Playlist, error)

hard geo block

type LegacyId

type LegacyId [3]string

func (LegacyId) Discovery

func (i LegacyId) Discovery() (*DiscoveryTitle, error)

func (*LegacyId) Set

func (i *LegacyId) Set(text string) error

func (LegacyId) String

func (i LegacyId) String() string

type Namer

type Namer struct {
	Discovery *DiscoveryTitle
}

func (Namer) Episode

func (n Namer) Episode() int

func (Namer) Season

func (n Namer) Season() int

func (Namer) Show

func (n Namer) Show() string

func (Namer) Title

func (n Namer) Title() string

func (Namer) Year

func (n Namer) Year() int

type Playlist

type Playlist struct {
	Playlist struct {
		Video struct {
			MediaFiles []struct {
				Href       string
				Resolution string
			}
		}
	}
}

func (*Playlist) Resolution720

func (p *Playlist) Resolution720() (string, bool)

type Poster

type Poster struct{}

func (Poster) RequestHeader

func (Poster) RequestHeader() (http.Header, error)

func (Poster) RequestUrl

func (Poster) RequestUrl() (string, bool)

func (Poster) UnwrapResponse

func (Poster) UnwrapResponse(b []byte) ([]byte, error)

func (Poster) WrapRequest

func (Poster) WrapRequest(b []byte) ([]byte, error)