mirror of
https://github.com/bit1001/tdl.git
synced 2024-09-20 06:35:54 +08:00
feat(downloader): add download dir log
This commit is contained in:
parent
c46452b801
commit
9ad5369826
|
@ -39,6 +39,8 @@ func New(client *tg.Client, partSize int, threads int, iter Iter) *Downloader {
|
|||
}
|
||||
|
||||
func (d *Downloader) Download(ctx context.Context, limit int) error {
|
||||
d.pw.Log(color.GreenString("All files will be downloaded to '%s' dir", consts.DownloadPath))
|
||||
|
||||
d.pw.SetNumTrackersExpected(d.iter.Total(ctx))
|
||||
|
||||
go d.pw.Render()
|
||||
|
|
Loading…
Reference in a new issue