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

Index

Functions

func GetPath(rawUrl string) (string, error)

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     []MediaPart
		Protocol string
	}
	RatingKey string
}

Methods

func (i *ItemMetadata) Dash() (*MediaPart, bool)

type MediaPart

type MediaPart struct {
	Key     string
	License string
}

type User

type User struct {
	AuthToken string
}

Methods

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