func Id(link string) (string, error)
hulu.com/movie/05e76ad8-c3dd-4c3e-bab9-df3cf71c6871 hulu.com/movie/alien-romulus-05e76ad8-c3dd-4c3e-bab9-df3cf71c6871
type Dash struct { Body []byte Url *url.URL }
type DeepLink struct { EabId string `json:"eab_id"` Message string }
type Playlist struct { DashPrServer string `json:"dash_pr_server"` WvServer string `json:"wv_server"` Message string StreamUrl string `json:"stream_url"` // MPD }
func (p *Playlist) Dash() (*Dash, error)
func (p *Playlist) PlayReady(data []byte) ([]byte, error)
func (p *Playlist) Widevine(data []byte) ([]byte, error)
type Session struct { Data struct { DeviceToken string `json:"device_token"` UserToken string `json:"user_token"` } }
func (s *Session) DeepLink(id string) (*DeepLink, error)
func (s *Session) Fetch(email, password string) error
func (s *Session) Playlist(deep *DeepLink) (*Playlist, error)
1080p L3, SL2000 1440p SL3000
func (s *Session) TokenRefresh() error
returns user_token only