Package mubi (v1.10.9) [up] [repository]

Index

Variables

var ClientCountry = "US"

Functions

func FetchId(slug string) (int, 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

Types

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

type LinkCode

type LinkCode struct {
	AuthToken string `json:"auth_token"`
	LinkCode  string `json:"link_code"`
}

Methods

func (l *LinkCode) Fetch() error
func (l *LinkCode) Session() (*Session, error)
func (l *LinkCode) String() string

type SecureUrl

type SecureUrl struct {
	TextTrackUrls []struct {
		Id  string
		Url string
	} `json:"text_track_urls"`
	Url         string // MPD
	UserMessage string `json:"user_message"`
}

Methods

func (s *SecureUrl) Dash() (*Dash, error)

type Session

type Session struct {
	Token string
	User  struct {
		Id int
	}
}

Methods

func (s *Session) SecureUrl(filmId int) (*SecureUrl, error)
func (s *Session) Viewing(filmId 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(data []byte) ([]byte, error)