package mubi
import "41.neocities.org/media/mubi"
Index
- Variables
- type Address
-
type Authenticate
- func (a *Authenticate) RequestHeader() (http.Header, error)
- func (Authenticate) RequestUrl() (string, bool)
- func (a *Authenticate) Unmarshal() error
- func (Authenticate) UnwrapResponse(b []byte) ([]byte, error)
- func (a *Authenticate) Url(film *FilmResponse) (*SecureUrl, error)
- func (a *Authenticate) Viewing(film *FilmResponse) error
- func (Authenticate) WrapRequest(b []byte) ([]byte, error)
- type FilmResponse
- type LinkCode
- type Namer
- type SecureUrl
- type TextTrack
Variables
var ClientCountry = "US"
Types
type Address
type Address struct { // contains filtered or unexported fields }
func (*Address) Film
func (a *Address) Film() (*FilmResponse, error)
func (*Address) Set
func (a *Address) Set(text string) error
func (*Address) String
func (a *Address) String() string
type Authenticate
type Authenticate struct { Token string User struct { Id int } Raw []byte `json:"-"` }
func (*Authenticate) RequestHeader
func (a *Authenticate) RequestHeader() (http.Header, error)
func (Authenticate) RequestUrl
func (Authenticate) RequestUrl() (string, bool)
final slash is needed
func (*Authenticate) Unmarshal
func (a *Authenticate) Unmarshal() error
func (Authenticate) UnwrapResponse
func (Authenticate) UnwrapResponse(b []byte) ([]byte, error)
func (*Authenticate) Url
func (a *Authenticate) Url(film *FilmResponse) (*SecureUrl, error)
func (*Authenticate) Viewing
func (a *Authenticate) Viewing(film *FilmResponse) error
Mubi do this sneaky thing. you cannot download a video unless you have told the API that you are watching it. so you have to call `/v3/films/%v/viewing`, otherwise it wont let you get the MPD. if you have already viewed the video on the website that counts, but if you only use the tool it will error
func (Authenticate) WrapRequest
func (Authenticate) WrapRequest(b []byte) ([]byte, error)
type FilmResponse
type FilmResponse struct { Id int64 Title string Year int }
type LinkCode
type LinkCode struct { AuthToken string `json:"auth_token"` LinkCode string `json:"link_code"` Raw []byte `json:"-"` }
func (*LinkCode) Authenticate
func (c *LinkCode) Authenticate() (*Authenticate, error)
func (*LinkCode) New
func (c *LinkCode) New() error
func (*LinkCode) String
func (c *LinkCode) String() string
func (*LinkCode) Unmarshal
func (c *LinkCode) Unmarshal() error
type Namer
type Namer struct { Film *FilmResponse }
func (Namer) Episode
func (Namer) Episode() int
func (Namer) Season
func (Namer) Season() int
func (Namer) Show
func (Namer) Show() string
func (*Namer) Title
func (n *Namer) Title() string
func (*Namer) Year
func (n *Namer) Year() int
type SecureUrl
type SecureUrl struct { TextTrackUrls []TextTrack `json:"text_track_urls"` Url string Raw []byte `json:"-"` }
func (*SecureUrl) Unmarshal
func (s *SecureUrl) Unmarshal() error
type TextTrack
type TextTrack struct { Id string Url string }
func (*TextTrack) String
func (t *TextTrack) String() string