var Apps = []App{ { Id: "com.cbs.app", Host: "www.paramountplus.com", Secret: "7081400bd4143bf3", Version: "Paramount+ 16.8.0", }, { Id: "com.cbs.tve", Host: "www.cbs.com", Secret: "cef32931dc01412e", Version: "CBS 15.6.0", }, { Id: "com.cbs.ca", Host: "www.paramountplus.com", Secret: "1c5d27627d71b420", Version: "Paramount+ 16.8.0", }, }
func AppIds() string
func ExtractDexHexBytes(name string) (map[string]struct{}, error)
ExtractDexHexBytes returns a set (map) of unique 16-character hex strings found in .dex files
type App struct { Id string Host string Secret string Version string }
func GetApp(id string) (*App, error)
func (a *App) FetchCbsCom(username, password string) (*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 *Cookie) (*Session, error)
func (a *App) FetchStreamingUrl(contentId string, cbsCom *Cookie) (*Session, error)
func (a *App) FetchWidevine(contentId string, cbsCom *Cookie) (*Session, error)
type Cookie struct { Name string Value string }
func (*Cookie) CachePath() string
func (c *Cookie) String() string
type Session struct { LsSession string `json:"ls_session"` Message string StreamingUrl *Url // MPD Url *Url // License Server }
func (s *Session) Fetch(body []byte) ([]byte, error)
type Url struct { Url url.URL }
func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error