var Language = "EN"
type Account struct { AccessToken string `json:"access_token"` AccountId string `json:"account_id"` RefreshToken string `json:"refresh_token"` }
func Login(username, password string) (*Account, error)
func (a *Account) FetchProfiles() ([]*Profile, error)
func (a *Account) FetchSubscriptions() ([]Subscription, error)
func (a *Account) Login(profileId string) error
699710369328da351ac33c63
type ContentPackage struct { Id int DestinationId int }
func (c *ContentPackage) LicensePlayReady(contentId int, accessToken string, payload []byte) ([]byte, error)
SL2000 max 2160p
func (c *ContentPackage) LicenseWidevine(contentId int, accessToken string, payload []byte) ([]byte, error)
L3 max 720p
func (c *ContentPackage) ManifestPlayReady(contentId int, accessToken string) (*Manifest, error)
func (c *ContentPackage) ManifestWidevine(contentId int, accessToken string) (*Manifest, error)
type Dash struct { Body []byte Url *url.URL }
type Manifest struct { Message string Playback string }
func (m *Manifest) FetchDash() (*Dash, error)
type Media struct { FirstContent struct { Id int `json:"id,string"` } Id int `json:"id,string"` }
func FetchMedia(id int) (*Media, error)
func ParseMedia(rawUrl string) (*Media, error)
func (m *Media) FetchContentPackage() (*ContentPackage, error)
type Profile struct { Nickname string `json:"nickname"` HasPin bool `json:"hasPin"` Master bool Maturity string Id string `json:"id"` }
func (p *Profile) String() string
type Subscription struct { Experience struct { DisplayName string } ExpirationDate string }
func (s *Subscription) String() string