Package nbc (v1.11.4) [up] [repository]

Index

Functions

func FetchWidevine(body []byte) ([]byte, error)
func GetName(urlData string) (string, error)

https://nbc.com/saturday-night-live/video/november-15-glen-powell/9000454161

Types

type Metadata

type Metadata struct {
	MpxAccountId    int `json:",string"`
	MpxGuid         int `json:",string"`
	ProgrammingType string
}

Functions

func FetchMetadata(name string) (*Metadata, error)

Methods

func (m *Metadata) FetchStream() (*Stream, error)

type Stream

type Stream struct {
	PlaybackUrl *Url // MPD
}

Methods

func (s Stream) GetManifest() *url.URL

type Url

type Url struct {
	Url url.URL
}

Methods

func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error