type Dash struct { Body []byte Url *url.URL }
good for 10 years
type Login struct { Jwt string UserId int }
func (l *Login) Fetch(email, password string) error
func (l *Login) Membership() (*Membership, error)
func (l *Login) Plays(member *Membership, videoId int) (*Plays, error)
func (l *Login) Widevine(manifest *PlayManifest, data []byte) ([]byte, error)
type Membership struct { DomainId int }
type PlayManifest struct { DrmLicenseId string ManifestType string Url string }
func (p *PlayManifest) Dash() (*Dash, error)
type Plays struct { ErrorMsgLong string `json:"error_msg_long"` Manifests []PlayManifest }
func (p *Plays) Dash() (*PlayManifest, error)