func GetPath(rawUrl string) (string, error)
https://watch.plex.tv/movie/memento-2000 https://watch.plex.tv/watch/movie/memento-2000
type Dash struct { Body []byte Url *url.URL }
type ItemMetadata struct { Media []struct { Part []MediaPart Protocol string } RatingKey string }
func (i *ItemMetadata) Dash() (*MediaPart, bool)
type MediaPart struct { Key string License string }
type User struct { AuthToken string }
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)