Package ctv (v1.10.6) [repository]

Index

Variables

var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		log.Println(req.Method, req.URL)
		return nil, nil
	},
}

Functions

func GetPath(rawUrl string) (string, error)

https://ctv.ca/shows/friends/the-one-with-the-bullies-s2e21

func Widevine(data []byte) ([]byte, error)

Types

type AxisContent

type AxisContent struct {
	AxisId                int64
	AxisPlaybackLanguages []struct {
		DestinationCode string
	}
}

Methods

func (a *AxisContent) Content() (*Content, error)
func (a *AxisContent) Mpd(contentVar *Content) (string, error)

type Content

type Content struct {
	ContentPackages []struct {
		Id int64
	}
}

type ResolvedPath

type ResolvedPath struct {
	FirstPlayableContent *struct {
		Id string
	}
	Id string
}

Methods

func (r *ResolvedPath) Axis() (*AxisContent, error)