Package criterion
(v1.10.9)
[up]
[repository]
Index
Types
type Dash
type Dash struct {
Body []byte
Url *url.URL
}
type MediaFile struct {
DrmAuthorizationToken string `json:"drm_authorization_token"`
Links struct {
Source struct {
Href string
}
} `json:"_links"`
Method string
}
Methods
func (m *MediaFile) Dash() (*Dash, error)
func (m *MediaFile) Widevine(data []byte) ([]byte, error)
type MediaFiles []MediaFile
Methods
func (m MediaFiles) Dash() (*MediaFile, error)
type Token
type Token struct {
AccessToken string `json:"access_token"`
Error string
ErrorDescription string `json:"error_description"`
RefreshToken string `json:"refresh_token"`
}
Methods
func (t *Token) Fetch(username, password string) error
func (t *Token) Files(item *VideoItem) (MediaFiles, error)
func (t *Token) GetError() error
func (t *Token) Item(slug string) (*VideoItem, error)
func (t *Token) Refresh() error
type VideoItem
type VideoItem struct {
Links struct {
Files struct {
Href string
}
} `json:"_links"`
}