pbs

package
v1.51.6 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 13, 2022 License: OSL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var LogLevel format.LogLevel

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Object_Type string
	Slug        string
	Player_Code string
}

func (Asset) Widget added in v1.50.7

func (a Asset) Widget() (*Widget, error)

type Frontline added in v1.50.7

type Frontline struct {
	Graph []struct {
		Type     string `json:"@type"`
		EmbedURL string
	} `json:"@graph"`
}

func NewFrontline added in v1.50.7

func NewFrontline(addr string) (*Frontline, error)

func (Frontline) Widget added in v1.50.7

func (f Frontline) Widget() (*Widget, error)

type Masterpiece added in v1.50.7

type Masterpiece struct {
	EmbedURL string
}

func NewMasterpiece added in v1.50.7

func NewMasterpiece(addr string) (*Masterpiece, error)

func (Masterpiece) Widget added in v1.50.7

func (m Masterpiece) Widget() (*Widget, error)

type Nature added in v1.50.7

type Nature map[string]struct {
	Video_Iframe string
}

func NewNature added in v1.50.7

func NewNature(addr string) (*Nature, error)

func (Nature) Widget added in v1.50.7

func (n Nature) Widget() (*Widget, error)

type Nova added in v1.50.7

type Nova struct {
	Query struct {
		Video string
	}
	Props struct {
		PageProps struct {
			Data struct {
				Episodes []struct {
					Slug    string
					Episode struct {
						Assets []Asset
					}
				}
			}
		}
	}
}

func NewNova added in v1.50.7

func NewNova(addr string) (*Nova, error)

func (Nova) Asset added in v1.51.2

func (n Nova) Asset() *Asset

type Video added in v1.37.6

type Video struct {
	ContentURL string
	Video      struct {
		ContentURL string
	}
}

func NewVideo added in v1.50.7

func NewVideo(addr string) (*Video, error)

func (Video) Widget added in v1.50.7

func (v Video) Widget() (*Widget, error)

type Widget added in v1.50.7

type Widget struct {
	Slug    string
	Program struct {
		Title string
	}
	Title     string
	Duration  int64
	Encodings []string
}

func NewWidget added in v1.50.7

func NewWidget(addr *url.URL) (*Widget, error)

func (Widget) Format added in v1.50.8

func (w Widget) Format(f fmt.State, verb rune)

func (Widget) GetDuration added in v1.50.8

func (w Widget) GetDuration() time.Duration

func (Widget) HLS added in v1.50.7

func (w Widget) HLS() string

func (Widget) Widget added in v1.50.7

func (w Widget) Widget() (*Widget, error)

type Widgeter added in v1.50.7

type Widgeter interface {
	Widget() (*Widget, error)
}

func NewWidgeter added in v1.50.7

func NewWidgeter(addr string) (Widgeter, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL