Package rtbf
(v1.11.4)
[up]
[repository]
Index
Functions
func FetchAssetId(path string) (string, error)
func GetPath(urlData string) (string, error)
Types
type Account
type Account struct {
SessionInfo struct {
CookieValue string
}
}
Functions
func FetchAccount(id, password string) (*Account, error)
Methods
func (*Account) CachePath() string
func (a *Account) Identity() (*Identity, error)
type Entitlement
type Entitlement struct {
AssetId string
Formats []struct {
Format string
MediaLocator string
}
Message string
PlayToken string
}
Methods
func (*Entitlement) CachePath() string
func (e *Entitlement) FetchWidevine(body []byte) ([]byte, error)
func (e *Entitlement) GetDash() (*url.URL, error)
type Identity
type Identity struct {
IdToken string `json:"id_token"`
}
Methods
func (i *Identity) Session() (*Session, error)
type Session
type Session struct {
SessionToken string
}
Methods
func (s *Session) Entitlement(assetId string) (*Entitlement, error)