download

package
v0.10.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ErrExist = errors.Business("file already exist (%s)", "DC:001")

Functions

func YouTube

func YouTube(ctx context.Context, params Params) (files.Output, *youtube.Video, error)

Types

type Config

type Config struct {
	OutputDir string `fig:"output_dir" yaml:"output_dir" default:"downloads"`
	Quality   string `fig:"quality" yaml:"quality" default:"hd1080"`
	MimeType  string `fig:"mime_type" yaml:"mime_type" default:"mp4"`
}

func (Config) Apply

func (c Config) Apply(params Params) (Params, error)

func (Config) FromRaw

func (c Config) FromRaw(raw collection.Params) (Params, error)

type Params

type Params struct {
	OutputDir string
	Quality   string
	MimeType  string
	Source    string
}

func (Params) Filename

func (p Params) Filename(title string) string

Jump to

Keyboard shortcuts

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