Package kanopy (v1.11.1) [up] [repository]

Index

Types

type Dash

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

type Login

good for 10 years

type Login struct {
	Jwt    string
	UserId int
}

Functions

func FetchLogin(email, password string) (*Login, error)

Methods

func (l *Login) Membership() (*Membership, error)
func (l *Login) Plays(domainId, videoId int) (*Plays, error)
func (l *Login) Video(alias string) (*Video, error)
func (l *Login) Widevine(licenseId string, data []byte) ([]byte, error)

type Manifest

type Manifest struct {
	DrmLicenseId string
	ManifestType string
	Url          string
}

Methods

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

type Membership

type Membership struct {
	DomainId int
}

type Plays

type Plays struct {
	Captions []struct {
		Files []struct {
			Url string
		}
	}
	ErrorMsgLong string `json:"error_msg_long"`
	Manifests    []Manifest
}

Methods

func (p *Plays) Dash() (*Manifest, error)

type Video

type Video struct {
	Alias   string
	VideoId int
}

Functions

func ParseVideo(urlData string) (*Video, error)

Supports URLs such as: - https://kanopy.com/video/6440418 - https://kanopy.com/video/genius-party - https://kanopy.com/en/video/genius-party - https://kanopy.com/en/product/genius-party