downloader

package
v0.3.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Downloader

type Downloader struct {
	Option *Option
	// contains filtered or unexported fields
}

func NewDownloader

func NewDownloader(p *tea.Program, opt *Option) *Downloader

func (*Downloader) Download

func (d *Downloader) Download(ani *resolvers.HAnime, m *progressbar.Model) error

func (*Downloader) SendPbProgress added in v0.3.1

func (d *Downloader) SendPbProgress(fileName string, ratio float64)

func (*Downloader) SendPbStatus added in v0.3.1

func (d *Downloader) SendPbStatus(fileName, status string)

type Option

type Option struct {
	OutputDir  string
	Quality    string
	Info       bool
	LowQuality bool
	Retry      uint8
}

Jump to

Keyboard shortcuts

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