Package canal
(v1.10.9)
[up]
[repository]
Index
Functions
func FetchTracking(link string) (string, error)
Types
type Dash
type Dash struct {
Body []byte
Url *url.URL
}
type Episode
type Episode struct {
Desc string
Id string
Params struct {
SeriesEpisode int
}
Title string
}
Methods
func (e *Episode) String() string
type Login
type Login struct {
Label string
Message string
SsoToken string
}
Methods
func (l *Login) Error() string
type Player
type Player struct {
Drm struct {
LicenseUrl string
}
Message string
Subtitles []struct {
Url string
}
Url string
}
Methods
func (p *Player) Dash() (*Dash, error)
func (p *Player) Widevine(data []byte) ([]byte, error)
type Session
type Session struct {
Message string
SsoToken string
Token string
}
Methods
func (s *Session) Episodes(tracking string, season int) ([]Episode, error)
func (s *Session) Fetch(ssoToken string) error
func (s *Session) Player(tracking string) (*Player, error)
type Ticket
type Ticket struct {
Message string
Ticket string
}
Methods
func (t *Ticket) Fetch() error
func (t *Ticket) Login(username, password string) (*Login, error)