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

Index

Functions

func GetPath(rawLink 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                int
	AxisPlaybackLanguages []struct {
		DestinationCode string
	}
}

Methods

func (a *AxisContent) Manifest(play *Playback) (Manifest, error)
func (a *AxisContent) Playback() (*Playback, error)

type Dash

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

type Manifest

type Manifest []byte

Methods

func (m Manifest) Dash() (*Dash, error)

type Playback

type Playback struct {
	ContentPackages []struct {
		Id int
	}
}

type ResolvedPath

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

Functions

func Resolve(path string) (*ResolvedPath, error)

Methods

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