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

Index

Functions

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

Types

type Dash

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

Methods

func (d *Dash) Fetch(link *url.URL) error

type Series

type Series struct {
	SessionToken string
	Vod          []Vod
}

Methods

func (s *Series) Fetch(movieShow string) error

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

func (s *Series) GetEpisodeURL(episodeID string) (*url.URL, error)

GetEpisodeURL generates the Stitcher URL object for a specific episode by its ID.

func (s *Series) GetMovieURL() *url.URL

GetMovieURL generates the Stitcher URL object for a movie. 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   int64
			Stitched Stitched
		}
		Number int64
	}
	Slug     string
	Stitched *Stitched
}

Methods

func (v *Vod) String() string