Skip to content

Commit

Permalink
better output
Browse files Browse the repository at this point in the history
  • Loading branch information
nikooo777 committed Jun 17, 2021
1 parent a0fb4e5 commit 7c652b2
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion sources/youtubeVideo.go
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,12 @@ func (v *YoutubeVideo) download() error {
decor.EwmaETA(decor.ET_STYLE_GO, 90),
decor.Name(" ] "),
decor.EwmaSpeed(decor.UnitKiB, "% .2f ", 60),
decor.OnComplete(
// ETA decorator with ewma age of 60
decor.EwmaETA(decor.ET_STYLE_GO, 60), "done",
),
),
mpb.BarRemoveOnComplete(),
)

for {
Expand Down Expand Up @@ -737,7 +742,7 @@ func (v *YoutubeVideo) downloadAndPublish(daemon *jsonrpc.Client, params SyncPar
break
}

log.Debugln("Downloaded " + v.id)
//log.Debugln("Downloaded " + v.id)
ctx, cancelFn := context.WithTimeout(context.Background(), 5*time.Second)
defer cancelFn()

Expand Down

0 comments on commit 7c652b2

Please sign in to comment.