func FetchAssetId(path string) (string, error)
func GetPath(rawUrl string) (string, error)
type Account struct { ErrorMessage string SessionInfo struct { CookieValue string } }
func (a *Account) Fetch(id, password string) error
func (a *Account) Identity() (*Identity, error)
type Dash struct { Body []byte Url *url.URL }
type Entitlement struct { AssetId string Formats []FormatItem Message string PlayToken string }
func (e *Entitlement) Dash() (*FormatItem, error)
Dash finds the "DASH" format in the Entitlement's formats. It returns the FormatItem if found, otherwise it returns an error.
func (e *Entitlement) Widevine(data []byte) ([]byte, error)
type FormatItem struct { Format string MediaLocator string // MPD }
func (f *FormatItem) Dash() (*Dash, error)
type Identity struct { ErrorMessage string IdToken string `json:"id_token"` }
func (i *Identity) Session() (*Session, error)
type Session struct { SessionToken string }
func (s *Session) Entitlement(assetId string) (*Entitlement, error)