Package hboMax (v1.10.9) [up] [repository]

Index

Variables

var Markets = []string{
	"amer",
	"apac",
	"emea",
	"latam",
}

Types

type Dash

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

type Error

type Error struct {
	Detail  string // show was filtered by validator
	Message string // Token is missing or not valid
}

Methods

func (e *Error) Error() string

type Initiate

type Initiate struct {
	LinkingCode string
	TargetUrl   string
}

Methods

func (i *Initiate) String() string

type Login

type Login struct {
	Data struct {
		Attributes struct {
			Token string
		}
	}
}

Methods

func (l Login) Movie(show *ShowKey) (*Videos, error)
func (l *Login) PlayReady(editId string) (*Playback, error)
func (l Login) Season(show *ShowKey, number int) (*Videos, error)
func (l *Login) Widevine(editId string) (*Playback, error)

type Playback

type Playback struct {
	Drm struct {
		Schemes struct {
			PlayReady *Scheme
			Widevine  *Scheme
		}
	}
	Errors   []Error
	Fallback struct {
		Manifest struct {
			Url string // _fallback.mpd:1080p, .mpd:4K
		}
	}
	Manifest struct {
		Url string // 1080p
	}
}

Methods

func (p *Playback) Dash() (*Dash, error)
func (p *Playback) PlayReady(data []byte) ([]byte, error)
func (p *Playback) Widevine(data []byte) ([]byte, error)

type Scheme

type Scheme struct {
	LicenseUrl string
}

type ShowKey

type ShowKey struct {
	Type string
	Id   string
}

Methods

func (s *ShowKey) Parse(rawUrl string) error

type St

type St struct {
	Cookie *http.Cookie
}

Methods

func (s *St) Fetch() error
func (s St) Initiate(market string) (*Initiate, error)
func (s St) Login() (*Login, error)

you must /authentication/linkDevice/initiate first or this will always fail

type Video

type Video struct {
	Attributes *struct {
		SeasonNumber  int
		EpisodeNumber int
		Name          string
		VideoType     string
	}
	Relationships *struct {
		Edit *struct {
			Data struct {
				Id string
			}
		}
	}
}

Methods

func (v *Video) String() string

type Videos

type Videos struct {
	Errors   []Error
	Included []*Video
}

Methods

func (v *Videos) FilterAndSort()