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

Index

Functions

func FetchId(link string) (int, error)

extracts the numeric ID and converts it to an integer

Types

type Dash

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

Methods

func (m *MediaLink) Dash() (*Dash, error)

type Session

Session holds the cookie data.

type Session struct {
	Cookie *http.Cookie
}

Methods

func (s *Session) Fetch() error

Fetch performs the HEAD request to cinemember.nl and populates the Session with the PHPSESSID cookie.

func (s Session) Login(email, password string) error
func (s Session) Stream(id int) (*Stream, error)

must run Session.Login first

type Stream

type Stream struct {
	Error    string
	Links    []MediaLink
	NoAccess bool
}

Methods

func (s *Stream) Dash() (*MediaLink, error)