maya

package module
v1.42.5 Latest Latest
Warning

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

Go to latest
Published: Jul 15, 2026 License: OSL-3.0 Imports: 23 Imported by: 46

README

maya

You're so cute my
Blade is on the bird
I'll be the one
Who ends up getting hurt

Oklou - 'blade bird'

Multi-threaded DASH/HLS downloader with DRM decryption

https://41.neocities.org/maya

Discord

https://discord.com/invite/rMFzDRQhSx

Documentation

Overview

api.go

cli.go

dash.go

dash_segments.go

downloader.go

drm.go

hls.go

orchestrator.go

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DownloadDash added in v1.35.1

func DownloadDash(streamId string, manifestData *Manifest, optionsData *Options) error

func DownloadHls added in v1.35.1

func DownloadHls(streamId string, manifestData *Manifest, optionsData *Options) error

func Get added in v1.32.4

func Get(targetUrl *url.URL, headers map[string]string) (*http.Response, error)

Get performs an HTTP GET request and logs it

func Head(targetUrl *url.URL, headers map[string]string) (*http.Response, error)

Head performs an HTTP HEAD request and logs it

func Post added in v1.32.4

func Post(targetUrl *url.URL, headers map[string]string, body []byte) (*http.Response, error)

Post performs an HTTP POST request and logs it

Types

type Cache added in v1.24.7

type Cache string

func (Cache) Decode added in v1.34.1

func (c Cache) Decode(values ...CacheValue) error

func (Cache) Encode added in v1.34.1

func (c Cache) Encode(values ...CacheValue) error

func (*Cache) Setup added in v1.26.7

func (c *Cache) Setup() error

type CacheValue added in v1.40.7

type CacheValue interface {
	CachePath() string
}

type DrmSystem added in v1.35.1

type DrmSystem int
const (
	DrmNone DrmSystem = iota
	DrmPlayReady
	DrmWidevine
)

type Flag added in v1.29.9

type Flag struct {
	Name  string
	Usage string
	Value FlagValue
	Needs string
	// contains filtered or unexported fields
}

type FlagBool added in v1.38.7

type FlagBool bool

func (FlagBool) Default added in v1.38.7

func (b FlagBool) Default() string

func (FlagBool) Example added in v1.38.7

func (FlagBool) Example() string

func (*FlagBool) Parse added in v1.38.7

func (b *FlagBool) Parse(value string) error

func (FlagBool) Type added in v1.38.7

func (FlagBool) Type() string

type FlagInt added in v1.38.7

type FlagInt int

func (FlagInt) Default added in v1.38.7

func (i FlagInt) Default() string

func (FlagInt) Example added in v1.38.7

func (FlagInt) Example() string

func (*FlagInt) Parse added in v1.38.7

func (i *FlagInt) Parse(value string) error

func (FlagInt) Type added in v1.38.7

func (FlagInt) Type() string

type FlagSet added in v1.35.4

type FlagSet []*Flag

func (FlagSet) IsSet added in v1.38.7

func (set FlagSet) IsSet(value FlagValue) bool

func (FlagSet) Parse added in v1.35.4

func (set FlagSet) Parse(args []string) error

func (FlagSet) Usage added in v1.38.7

func (set FlagSet) Usage(w io.Writer, name string) error

type FlagString added in v1.38.7

type FlagString string

func (FlagString) Default added in v1.38.7

func (s FlagString) Default() string

func (FlagString) Example added in v1.38.7

func (FlagString) Example() string

func (*FlagString) Parse added in v1.38.7

func (s *FlagString) Parse(value string) error

func (FlagString) Type added in v1.38.7

func (FlagString) Type() string

type FlagValue added in v1.38.7

type FlagValue interface {
	Parse(string) error
	Type() string
	Default() string
	Example() string
}

type Manifest added in v1.35.1

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

func ListDash added in v1.20.4

func ListDash(baseUrl *url.URL) (*Manifest, error)

func ListHls added in v1.20.4

func ListHls(baseUrl *url.URL) (*Manifest, error)

func (*Manifest) CachePath added in v1.40.8

func (*Manifest) CachePath() string

type Options added in v1.35.1

type Options struct {
	Threads    int
	Drm        DrmSystem
	Device     string
	License    func([]byte) ([]byte, error)
	MinBitrate int
}

Jump to

Keyboard shortcuts

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