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
type Dash struct { Body []byte Url *url.URL }
type ItemMetadata struct { Media []struct { Part []Part Protocol string } RatingKey string }
func (i *ItemMetadata) Dash() (*Part, error)
type Part struct { Key string License string }
type User struct { AuthToken string }
func FetchUser() (*User, error)
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)