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

Index

Variables

var AppSecrets = []struct {
	Version       string
	Us            string
	International string
}{
	{
		Version:       "16.4.1",
		Us:            "7cd07f93a6e44cf7",
		International: "68b4475a49bed95a",
	},
	{
		Version:       "16.0.0",
		Us:            "9fc14cb03691c342",
		International: "6c68178445de8138",
	},
}

Functions

func FetchAppSecret() (string, error)
func GetAt(appSecret string) (string, error)
func Login(at, username, password string) (*http.Cookie, error)

WARNING IF YOU RUN THIS TOO MANY TIMES YOU WILL GET AN IP BAN. HOWEVER THE BAN IS ONLY FOR THE ANDROID CLIENT NOT WEB CLIENT

Types

type Dash

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

type Item

type Item struct {
	CmsAccountId string
	ContentId    string
}

Functions

func FetchItem(at, cId string) (*Item, error)

Methods

func (i *Item) Dash() (*Dash, error)

type SessionToken

type SessionToken struct {
	Errors    string
	LsSession string `json:"ls_session"`
	Url       string
}

Functions

func PlayReady(at, contentId string, cookie *http.Cookie) (*SessionToken, error)

1080p SL2000 1440p SL2000 + cookie

func Widevine(at, contentId string) (*SessionToken, error)

576p L3

Methods

func (s *SessionToken) Send(data []byte) ([]byte, error)