package pluto

import "41.neocities.org/media/pluto"

Index

Variables

var Base = []FileBase{
	{"http", "silo-hybrik.pluto.tv.s3.amazonaws.com", "200 OK"},
	{"http", "siloh-fs.plutotv.net", "403 OK"},
	{"http", "siloh-ns1.plutotv.net", "403 OK"},
	{"https", "siloh-fs.plutotv.net", "403 OK"},
	{"https", "siloh-ns1.plutotv.net", "403 OK"},
}

Types

type Address

type Address [2]string

func (*Address) Set

func (a *Address) Set(text string) error

func (Address) String

func (a Address) String() string

func (Address) Video

func (a Address) Video(forward string) (*OnDemand, error)

type EpisodeClip

type EpisodeClip struct {
	Sources []struct {
		File Url
		Type string
	}
}

func (*EpisodeClip) Dash

func (e *EpisodeClip) Dash() (*url.URL, bool)

type FileBase

type FileBase struct {
	Scheme string
	Host   string
	Status string
}

type Namer

type Namer struct {
	Video *OnDemand
}

func (Namer) Episode

func (Namer) Episode() int

func (Namer) Season

func (Namer) Season() int

func (Namer) Show

func (n Namer) Show() string

func (Namer) Title

func (n Namer) Title() string

func (Namer) Year

func (Namer) Year() int

type OnDemand

type OnDemand struct {
	Episode string `json:"_id"`
	Id      string
	Name    string
	Seasons []*VideoSeason
	Slug    string
	// contains filtered or unexported fields
}

func (OnDemand) Clip

func (o OnDemand) Clip() (*EpisodeClip, error)

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 Url

type Url struct {
	Url *url.URL
}

func (*Url) UnmarshalText

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

type VideoSeason

type VideoSeason struct {
	Episodes []*OnDemand
	// contains filtered or unexported fields
}