youtube

package
v0.0.0-...-9174c1b Latest Latest
Warning

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

Go to latest
Published: Oct 1, 2022 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrNoSuitableFormat              = errors.New("no suitable audio-only format found")
	ErrGettingUrlFromSignatureCipher = errors.New("error getting URL from signature cipher")
	ErrDecryptFunctionBroken         = errors.New("signature decryptor function is broken (perhaps the extractor is out of date)")
	ErrMalformedJson                 = errors.New("malformed JSON")
)
View Source
var (
	ErrDecryptGettingFunctionName = errors.New("error getting signature decryption function name")
	ErrDecryptGettingFunction     = errors.New("error getting signature decryption function")
	ErrDecryptGettingOpTable      = errors.New("error getting signature decryption operation table")
	ErrGettingBaseJs              = errors.New("unable to get base.js")
)
View Source
var (
	ErrInvalidInput = errors.New("invalid input")
)

Functions

This section is empty.

Types

type Extractor

type Extractor struct {
	// contains filtered or unexported fields
}

func (*Extractor) DefaultConfig

func (e *Extractor) DefaultConfig() extractor.ProviderConfig

func (*Extractor) Extract

func (e *Extractor) Extract(cfg extractor.ProviderConfig, input string) ([]extractor.Data, error)

func (*Extractor) Matches

func (e *Extractor) Matches(cfg extractor.ProviderConfig, input string) bool

type Searcher

type Searcher struct{}

func (*Searcher) DefaultConfig

func (s *Searcher) DefaultConfig() extractor.ProviderConfig

func (*Searcher) Search

func (s *Searcher) Search(cfg extractor.ProviderConfig, input string) ([]extractor.Data, error)

type Suggestor

type Suggestor struct{}

func (*Suggestor) DefaultConfig

func (s *Suggestor) DefaultConfig() extractor.ProviderConfig

func (*Suggestor) Suggest

func (s *Suggestor) Suggest(cfg extractor.ProviderConfig, input string) ([]string, error)

Jump to

Keyboard shortcuts

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