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

Index

Variables

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",
	},
}

Functions

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

Types

type App

type App struct {
	Id      string
	Host    string
	Secret  string
	Version string
}

Functions

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

Methods

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
}

Methods

func (*Cookie) CachePath() string
func (c *Cookie) String() string

type Session

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

Methods

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

type Url

type Url struct {
	Url url.URL
}

Methods

func (u *Url) MarshalText() ([]byte, error)
func (u *Url) UnmarshalText(text []byte) error