to change location you must log in again
func GetEntity(link string) (string, error)
https://disneyplus.com/browse/entity-7df81cf5-6be5-4e05-9ff6-da33baf0b94d https://disneyplus.com/cs-cz/browse/entity-7df81cf5-6be5-4e05-9ff6-da33baf0b94d https://disneyplus.com/play/7df81cf5-6be5-4e05-9ff6-da33baf0b94d
type Account struct { Extensions struct { Sdk struct { Token struct { AccessToken string AccessTokenType string // Account } } } }
func (a *Account) Page(entity string) (*Page, error)
func (a *Account) PlayReady(data []byte) ([]byte, error)
SL2000 720p SL3000 1080p
func (a *Account) Season(id string) (*Season, error)
func (a *Account) Stream(mediaId string) (*Stream, error)
func (a *Account) Widevine(data []byte) ([]byte, error)
L3 720p
type AccountWithoutActiveProfile struct { Data struct { Login struct { Account struct { Profiles []struct { Id string } } } } Errors []Error Extensions struct { Sdk struct { Token struct { AccessToken string AccessTokenType string // AccountWithoutActiveProfile } } } }
func (a *AccountWithoutActiveProfile) SwitchProfile() (*Account, error)
type Device struct { Token struct { AccessToken string RefreshToken string AccessTokenType string // Device } }
func RegisterDevice() (*Device, error)
func (d *Device) Login(email, password string) (*AccountWithoutActiveProfile, error)
type Error struct { Code string Description string Extensions *struct { Code string } Message string }
func (e *Error) Error() string
type Hls struct { Body []byte Url *url.URL }
type Page struct { Actions []struct { InternalTitle string // movie } Containers []struct { Seasons []struct { Visuals struct { Name string } Id string } } }
func (p *Page) String() string
type Season struct { Items []struct { Actions []struct { InternalTitle string } } }
func (s Season) String() string
type Stream struct { Sources []struct { Complete struct { Url string } } }
func (s *Stream) Hls() (*Hls, error)