package rtbf
import "41.neocities.org/media/rtbf"
Index
- type Address
- type AuvioAuth
- type AuvioLogin
- type AuvioPage
- type Entitlement
- type Namer
- type Subtitle
- type Title
- type WebToken
Types
type Address
type Address struct { Path string }
func (Address) Page
func (a Address) Page() (*AuvioPage, error)
func (*Address) Set
func (a *Address) Set(s string) error
func (Address) String
func (a Address) String() string
type AuvioAuth
type AuvioAuth struct { SessionToken string }
func (*AuvioAuth) Entitlement
func (a *AuvioAuth) Entitlement(asset_id string) (*Entitlement, error)
type AuvioLogin
type AuvioLogin struct { CookieValue string Raw []byte }
func (*AuvioLogin) New
func (a *AuvioLogin) New(id, password string) error
func (*AuvioLogin) Token
func (a *AuvioLogin) Token() (*WebToken, error)
func (*AuvioLogin) Unmarshal
func (a *AuvioLogin) Unmarshal() error
type AuvioPage
type AuvioPage struct { AssetId string Media *struct { AssetId string } Subtitle Subtitle Title Title }
func (*AuvioPage) GetAssetId
func (a *AuvioPage) GetAssetId() (string, bool)
type Entitlement
type Entitlement struct { AssetId string PlayToken string Formats []struct { Format string MediaLocator string } }
func (*Entitlement) Dash
func (e *Entitlement) Dash() (string, bool)
func (Entitlement) RequestHeader
func (Entitlement) RequestHeader() (http.Header, error)
func (*Entitlement) RequestUrl
func (e *Entitlement) RequestUrl() (string, bool)
func (Entitlement) UnwrapResponse
func (Entitlement) UnwrapResponse(b []byte) ([]byte, error)
func (Entitlement) WrapRequest
func (Entitlement) WrapRequest(b []byte) ([]byte, error)
type Namer
type Namer struct { Page *AuvioPage }
func (Namer) Episode
func (n Namer) Episode() int
func (Namer) Season
func (n Namer) Season() int
func (Namer) Show
func (n Namer) Show() string
func (Namer) Title
func (n Namer) Title() string
func (Namer) Year
func (Namer) Year() int
its just not available from what I can tell
type Subtitle
type Subtitle struct { Episode int Subtitle string }
func (*Subtitle) UnmarshalText
func (s *Subtitle) UnmarshalText(text []byte) error
json.data.content.subtitle = "06 - Les ombres de la guerre"; json.data.content.subtitle = "Avec Rosamund Pike";
type Title
type Title struct { Season int Title string }
func (*Title) UnmarshalText
func (t *Title) UnmarshalText(text []byte) error
json.data.content.title = "Grantchester S01"; json.data.content.title = "I care a lot";
type WebToken
type WebToken struct { ErrorMessage string IdToken string `json:"id_token"` }
func (*WebToken) Auth
func (w *WebToken) Auth() (*AuvioAuth, error)