Package itv (v1.10.9) [up] [repository]

Index

Functions

func LegacyId(link string) string

Types

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

type MediaFile

type MediaFile struct {
	Href          string
	KeyServiceUrl string
	Resolution    string
}

Methods

func (m *MediaFile) Dash() (*Dash, error)
func (m *MediaFile) Widevine(data []byte) ([]byte, error)

type Playlist

type Playlist struct {
	Error    string
	Playlist struct {
		Video struct {
			MediaFiles []MediaFile
		}
	}
}

Methods

func (p *Playlist) FullHd() (*MediaFile, error)

type Title

type Title struct {
	LatestAvailableVersion struct {
		PlaylistUrl string
	}
	Series *struct {
		SeriesNumber int
	}
	EpisodeNumber int
	Title         string
}

Functions

func Titles(legacyId string) ([]Title, error)

Methods

func (t *Title) Playlist() (*Playlist, error)
func (t *Title) String() string