add threads option

This commit is contained in:
lapwat
2021-10-10 22:02:39 +02:00
parent 2d1d5a964a
commit d5971a2819
6 changed files with 28 additions and 12 deletions

View File

@@ -19,8 +19,8 @@ func NewProgress(links []link) progress {
return fmt.Sprintf("Chapters %d / %d", b.Current(), len(links))
})
individuals := []*uiprogress.Bar{}
// hide individual bars if more than 50 chapters
individuals := []*uiprogress.Bar{}
if len(links) <= 50 {
for index, link := range links {
bar := uiprogress.AddBar(1)