Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Content ¶
type Content struct { Children []*Content DetailedType string `json:"detailed_type"` EpisodeNumber int `json:"episode_number,string"` ID int `json:",string"` SeriesId int `json:"series_id,string"` Title string VideoResources []VideoResource `json:"video_resources"` Year int // contains filtered or unexported fields }
func (Content) Video ¶
func (c Content) Video() (*VideoResource, error)
type Resolution ¶
type Resolution int64
func (Resolution) MarshalText ¶ added in v1.9.3
func (r Resolution) MarshalText() ([]byte, error)
func (*Resolution) UnmarshalText ¶
func (r *Resolution) UnmarshalText(text []byte) error
type VideoResource ¶
type VideoResource struct { LicenseServer *struct { URL string } `json:"license_server"` Manifest struct { URL string } Resolution Resolution Type string }
func (VideoResource) RequestHeader ¶
func (VideoResource) RequestHeader() (http.Header, error)
func (VideoResource) RequestUrl ¶
func (v VideoResource) RequestUrl() (string, bool)
func (VideoResource) UnwrapResponse ¶ added in v1.8.9
func (VideoResource) UnwrapResponse(b []byte) ([]byte, error)
func (VideoResource) WrapRequest ¶ added in v1.8.9
func (VideoResource) WrapRequest(b []byte) ([]byte, error)
Click to show internal directories.
Click to hide internal directories.