var ClientCountry = "US"
type Dash struct { Body []byte Url *url.URL }
type Film struct { Title string Id int }
func FetchEpisodes(slug string, season int) ([]Film, error)
func FetchFilm(slug string) (*Film, error)
func (f *Film) String() string
type LinkCode struct { AuthToken string `json:"auth_token"` LinkCode string `json:"link_code"` }
func FetchLinkCode() (*LinkCode, error)
func (l *LinkCode) Session() (*Session, error)
func (l *LinkCode) String() string
type SecureUrl struct { TextTrackUrls []struct { Id string Url string } `json:"text_track_urls"` Url string // MPD UserMessage string `json:"user_message"` }
func (s *SecureUrl) Dash() (*Dash, error)
type Session struct { Token string User struct { Id int } }
func (s *Session) SecureUrl(id int) (*SecureUrl, error)
func (s *Session) Viewing(id int) error
to get the MPD you have to call this or view video on the website. request is hard geo blocked only the first time
func (s *Session) Widevine(body []byte) ([]byte, error)