var Transport = http.Transport{ Proxy: func(req *http.Request) (*url.URL, error) { if path.Ext(req.URL.Path) != ".m4s" { log.Println(req.Method, req.URL) } return http.ProxyFromEnvironment(req) }, }
func Id(address string) (int, error)
type Session [1]*http.Cookie
func (s *Session) Fetch() error
func (s Session) Login(email, password string) error
func (s *Session) Set(data string) error
func (s Session) Stream(id int) (*Stream, error)
must run Session.Login first
func (s Session) String() string
type Stream struct { Error string Links []struct { MimeType string Url string } NoAccess bool }
func (s *Stream) Dash() (string, bool)
func (s *Stream) Vtt() (string, bool)