var ClientCountry = "US"
var Transport = http.Transport{ Proxy: func(req *http.Request) (*url.URL, error) { log.Println(req.Method, req.URL) return nil, nil }, }
func FilmId(slug string) (int64, error)
func FilmSlug(address string) (string, error)
https://mubi.com/en/films/perfect-days https://mubi.com/en/us/films/perfect-days https://mubi.com/films/perfect-days https://mubi.com/us/films/perfect-days
type Authenticate struct { Token string User struct { Id int } }
func (a *Authenticate) SecureUrl(filmId int64) (*SecureUrl, error)
func (a *Authenticate) Unmarshal(data AuthenticateData) error
func (a *Authenticate) Viewing(filmId int64) 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 (a *Authenticate) Widevine(data []byte) ([]byte, error)
type AuthenticateData []byte
type LinkCode struct { AuthToken string `json:"auth_token"` LinkCode string `json:"link_code"` }
func (l *LinkCode) Authenticate() (AuthenticateData, error)
func (l *LinkCode) String() string
func (l *LinkCode) Unmarshal(data LinkCodeData) error
type LinkCodeData []byte
func FetchLinkCode() (LinkCodeData, error)
type SecureUrl struct { TextTrackUrls []Text `json:"text_track_urls"` Url string // MPD UserMessage string `json:"user_message"` }
type Text struct { Id string Url string }
func (t *Text) Base() string