Package itv
(v1.10.6)
[repository]
Index
Variables
var Transport = http.Transport{
Proxy: func(req *http.Request) (*url.URL, error) {
if path.Ext(req.URL.Path) != ".dash" {
log.Println(req.Method, req.URL)
}
return http.ProxyFromEnvironment(req)
},
}
Functions
func LegacyId(rawUrl string) (string, error)
Types
type MediaFile struct {
Href string
KeyServiceUrl string
Resolution string
}
Methods
func (m *MediaFile) Mpd() (*http.Response, 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, bool)
type Title
type Title struct {
LatestAvailableVersion struct {
PlaylistUrl string
}
Series *struct {
SeriesNumber int64
}
EpisodeNumber int64
Title string
}
Methods
func (t *Title) Playlist() (*Playlist, error)
func (t *Title) String() string