Package pluto (v1.10.6) [repository]

Index

Variables

var Transport = http.Transport{
	Proxy: func(req *http.Request) (*url.URL, error) {
		if path.Ext(req.URL.Path) != ".m4s" {
			log.Println(req.Method, req.URL)
		}
		return http.ProxyFromEnvironment(req)
	},
}

Functions

func Widevine(data []byte) ([]byte, error)

Types

type Clips

type Clips struct {
	Sources []struct {
		File File
		Type string
	}
}

Methods

func (c *Clips) Dash() (*File, bool)

type File

type File [1]url.URL

Methods

func (f *File) Mpd() (*http.Response, error)

The Request's URL and Header fields must be initialized

func (f *File) UnmarshalText(data []byte) error

these return a valid response body, but response status is "403 OK": http://siloh-fs.plutotv.net http://siloh-ns1.plutotv.net https://siloh-fs.plutotv.net https://siloh-ns1.plutotv.net

type Vod

type Vod struct {
	Id      string
	Seasons []struct {
		Number   int64
		Episodes []struct {
			Number int64
			Name   string
			Id     string `json:"_id"`
		}
	}
}

Methods

func (v *Vod) String() string