type Dash struct { Body []byte Url *url.URL }
good for 10 years
type Login struct { Jwt string UserId int }
func FetchLogin(email, password string) (*Login, error)
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 struct { DrmLicenseId string ManifestType string Url string }
func (m *Manifest) Dash() (*Dash, error)
type Membership struct { DomainId int }
type Plays struct { Captions []struct { Files []struct { Url string } } ErrorMsgLong string `json:"error_msg_long"` Manifests []Manifest }
func (p *Plays) Dash() (*Manifest, error)
type Video struct { Alias string VideoId int }
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