src

package
v0.0.0-...-e54fb5c Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2024 License: GPL-3.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PROGRESS_PREFIX = "[[DL]]"
	CUSTOM_PRESET   = "custom"
	DEFAULT_ARGS    = []string{"--force-keyframes-at-cuts", "--embed-metadata", "--no-playlist"}
	PROGRESS_ARGS   = []string{"--progress-template", PROGRESS_PREFIX + "%(progress)j", "--console-title"}
	PRESET_MAP      = [][]string{
		{"mp4-fast", "-f", "b"},
		{"mp4", "--remux-video", "mp4"},
		{"mp3", "-x", "--audio-format", "mp3", "-o", "%(uploader)s - %(title)s.%(ext)s"},
		{"wav", "-x", "--audio-format", "wav"},
		{CUSTOM_PRESET, "-f"},
	}
)

Functions

func AutoUpdate

func AutoUpdate()

func InitialModel

func InitialModel() model

func InstallFFMPEG

func InstallFFMPEG()

func InstallYTDLP

func InstallYTDLP()

func OpenInWindowsTerminal

func OpenInWindowsTerminal()

try to open in windows terminal if installed

func SetTermTitle

func SetTermTitle(title string)

Types

type Files

type Files map[string]string

type Spinner

type Spinner struct {
	Frames []string
	FPS    time.Duration
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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