Package pluto (v1.11.1) [up] [repository]

Index

Functions

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

Types

type Dash

type Dash struct {
	Body []byte
	Url  *url.URL
}

Functions

func FetchDash(urlData *url.URL) (*Dash, error)

type Series

type Series struct {
	SessionToken string
	Vod          []Vod
}

Functions

func FetchSeries(movieShow string) (*Series, error)

pluto.tv/on-demand/movies/64946365c5ae350013623630 pluto.tv/on-demand/movies/disobedience-ca-2018-1-1

Methods

func (s *Series) GetEpisodeUrl(episodeId string) (*url.URL, error)
func (s *Series) GetMovieUrl() *url.URL

It assumes Vod and Stitched.Paths always have at least one entry

type Stitched

type Stitched struct {
	Paths []struct {
		Path string
	}
}

type Vod

type Vod struct {
	Id      string
	Seasons []struct {
		Episodes []struct {
			Id       string `json:"_id"`
			Name     string
			Number   int
			Stitched Stitched
		}
		Number int
	}
	Slug     string
	Stitched *Stitched
}

Methods

func (v *Vod) String() string