Package canal
(v1.11.4)
[up]
[repository]
Index
Types
type Asset
type Asset struct {
Title string
Images []struct {
Size string
Type string
Url string
}
Id string
}
Methods
func (a *Asset) String() string
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 {
SsoToken string
}
type Player
type Player struct {
Drm struct {
LicenseUrl *Url
}
Subtitles []struct {
Url *Url
}
Url *Url
}
Methods
func (*Player) CachePath() string
func (p *Player) FetchWidevine(body []byte) ([]byte, error)
type Session
type Session struct {
SsoToken string
Token string
}
Functions
func FetchSession(ssoToken string) (*Session, error)
Methods
func (*Session) CachePath() string
func (s *Session) Episodes(tracking string, season int) ([]Episode, error)
func (s *Session) Player(tracking string) (*Player, error)
func (s *Session) Search(query string) ([]Asset, error)
type Ticket
type Ticket struct {
Ticket string
}
Functions
func FetchTicket() (*Ticket, error)
Methods
func (t *Ticket) Login(username, password string) (*Login, error)
type Url
type Url struct {
Url url.URL
}
Methods
func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error