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

Index

Functions

func ExtractDexHexBytes(name string) (map[string]struct{}, error)

ExtractDexHexBytes returns a set (map) of unique 16-character hex strings found in .dex files

func GetAppKeys() []string

Types

type App

type App struct {
	Host    string
	Version string
	Secret  string
}

Functions

func GetApp(key string) (*App, error)

Methods

func (a *App) FetchCbsCom(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

func (a *App) FetchPlayReady(contentId string, cbsCom *http.Cookie) (*Session, error)
func (a *App) FetchStreamingUrl(contentId string, cbsCom *http.Cookie) (*Session, error)
func (a *App) FetchWidevine(contentId string, cbsCom *http.Cookie) (*Session, error)

type Dash

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

type Session

type Session struct {
	LsSession    string `json:"ls_session"`
	Message      string
	StreamingUrl string // MPD
	Url          string // License Server
}

Methods

func (s *Session) Fetch(body []byte) ([]byte, error)
func (s *Session) FetchDash() (*Dash, error)