package ctv
import "41.neocities.org/media/ctv"
Index
Types
type Address
type Address struct { Path string }
func (Address) Resolve
func (a Address) Resolve() (*ResolvePath, error)
func (*Address) Set
func (a *Address) Set(s string) error
https://www.ctv.ca/shows/friends/the-one-with-the-bullies-s2e21
func (*Address) String
func (a *Address) String() string
type AxisContent
type AxisContent struct { AxisId int64 AxisPlaybackLanguages []struct { DestinationCode string } }
func (*AxisContent) Manifest
func (a *AxisContent) Manifest(media *MediaContent) (string, error)
wikipedia.org/wiki/Geo-blocking
func (*AxisContent) Media
func (a *AxisContent) Media() (*MediaContent, error)
type Date
type Date struct { Time time.Time }
func (*Date) MarshalText
func (d *Date) MarshalText() ([]byte, error)
func (*Date) UnmarshalText
func (d *Date) UnmarshalText(text []byte) error
type MediaContent
type MediaContent struct { BroadcastDate Date ContentPackages []struct { Id int64 } Episode int Media struct { Name string Type string } Name string Season struct { Number int } Raw []byte `json:"-"` }
func (*MediaContent) Unmarshal
func (m *MediaContent) Unmarshal() error
type Namer
type Namer struct { Media *MediaContent }
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 (n Namer) Year() int
type Poster
type Poster struct{}
func (Poster) RequestHeader
func (Poster) RequestHeader() (http.Header, error)
func (Poster) RequestUrl
func (Poster) RequestUrl() (string, bool)
func (Poster) UnwrapResponse
func (Poster) UnwrapResponse(b []byte) ([]byte, error)
func (Poster) WrapRequest
func (Poster) WrapRequest(b []byte) ([]byte, error)
type ResolvePath
type ResolvePath struct { Id string FirstPlayableContent *struct { Id string } }
func (*ResolvePath) Axis
func (r *ResolvePath) Axis() (*AxisContent, error)