downloader

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 19, 2026 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DownloadProgress

type DownloadProgress struct {
	Total     int
	Completed int
	Current   string
}

type Downloader

type Downloader struct {
	Client     *client.Client
	Config     config.Config
	ProgressCB func(DownloadProgress)
}

func NewDownloader

func NewDownloader(c *client.Client, cfg config.Config) *Downloader

func (*Downloader) DownloadAlbum

func (d *Downloader) DownloadAlbum(albumURL string) error

func (*Downloader) DownloadAlbumWithCallback

func (d *Downloader) DownloadAlbumWithCallback(albumURL string, cb func(DownloadProgress)) error

func (*Downloader) DownloadSong

func (d *Downloader) DownloadSong(song client.Song, albumTitle string) error

func (*Downloader) DownloadSongWithCallback

func (d *Downloader) DownloadSongWithCallback(song client.Song, albumTitle string, cb func(DownloadProgress)) error

Jump to

Keyboard shortcuts

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