media

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: May 14, 2023 License: GPL-3.0, GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Loader

func Loader(L *lua.LState)

func NewLuaMedia

func NewLuaMedia(media *Media, L *lua.LState) *lua.LUserData

Types

type Extractor

type Extractor struct {
	ExtractorCmd string
	VideoCmd     string
	ImageCmd     string
	TorrentCmd   string
	Client       *http.Client
}

func (*Extractor) NewMedia

func (e *Extractor) NewMedia(ctx context.Context, link string) (*Media, error)

type Media

type Media struct {
	OriginalLink string
	Links        []string
	ContentType  string
	// contains filtered or unexported fields
}

func (*Media) Run

func (media *Media) Run(ctx context.Context)

Jump to

Keyboard shortcuts

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