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

Index

Functions

func GetPath(rawUrl string) (string, error)

https://watch.plex.tv/embed/movie/memento-2000 https://watch.plex.tv/movie/memento-2000 https://watch.plex.tv/watch/movie/memento-2000

Types

type Dash

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

type ItemMetadata

type ItemMetadata struct {
	Media []struct {
		Part     []Part
		Protocol string
	}
	RatingKey string
}

Methods

func (i *ItemMetadata) Dash() (*Part, error)

type Part

type Part struct {
	Key     string
	License string
}

type User

type User struct {
	AuthToken string
}

Functions

func FetchUser() (*User, error)

Methods

func (u User) Dash(partData *Part, forwardedFor string) (*Dash, error)
func (u User) Media(item *ItemMetadata, forwardedFor string) (*ItemMetadata, error)
func (u User) RatingKey(rawUrl string) (*ItemMetadata, error)
func (u User) Widevine(partData *Part, data []byte) ([]byte, error)