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

Index

Variables

var ClientCountry = "US"

Types

type Film

type Film struct {
	Title string
	Id    int
}

Functions

func FetchEpisodes(slug string, season int) ([]*Film, error)
func FetchFilm(slug string) (*Film, error)

Methods

func (f *Film) String() string

type LinkCode

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

Functions

func FetchLinkCode() (*LinkCode, error)

Methods

func (*LinkCode) CachePath() string
func (l *LinkCode) FetchSession() (*Session, error)
func (l *LinkCode) String() string

type SecureUrl

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

Methods

func (s *SecureUrl) GetManifest() *url.URL

type Session

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

Methods

func (*Session) CachePath() string
func (s *Session) FetchSecureUrl(id int) (*SecureUrl, error)
func (s *Session) FetchViewing(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) FetchWidevine(body []byte) ([]byte, error)

type Url

type Url struct {
	Url url.URL
}

Methods

func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error