molotov

package
v1.10.9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 23, 2026 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Drm struct {
		Token string
	}
	Error  *AssetError
	Stream struct {
		Url string // MPD
	}
}

func (*Asset) Dash

func (a *Asset) Dash() (*Dash, error)

func (*Asset) Widevine

func (a *Asset) Widevine(data []byte) ([]byte, error)

type AssetError

type AssetError struct {
	DeveloperMessage string `json:"developer_message"`
	UserMessage      string `json:"user_message"`
}

func (*AssetError) Error

func (a *AssetError) Error() string

type Dash

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

type Login

type Login struct {
	Auth struct {
		AccessToken  string `json:"access_token"`
		RefreshToken string `json:"refresh_token"`
	}
}

func (*Login) Asset

func (l *Login) Asset(view *ProgramView) (*Asset, error)

func (*Login) Fetch

func (l *Login) Fetch(email, password string) error

func (*Login) ProgramView

func (l *Login) ProgramView(rosso *MediaId) (*ProgramView, error)

func (*Login) Refresh

func (l *Login) Refresh() error

authorization server issues a new refresh token, in which case the client MUST discard the old refresh token and replace it with the new refresh token

type MediaId

type MediaId struct {
	Program int
	Channel int
}

func (*MediaId) Parse

func (m *MediaId) Parse(link string) error

Parse extracts the IDs from a Molotov URL and populates the MediaId struct. It maps the first number in the URL to Program and the second to Channel.

type ProgramView

type ProgramView struct {
	Program struct {
		Actions struct {
			Play *struct {
				Url string // fapi.molotov.tv/v2/me/assets
			}
		}
	}
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL