Skip to content

Commit a6e06e8

Browse files
committed
set concurrent downloads to 1
1 parent bbd98ab commit a6e06e8

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/config/flags.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ func (cfg *Config) GetFlags() error {
2424
flag.StringVarP(&downloadMode, "download-mode", "d", "normal", "Download mode: 'normal' (download only when track is not found locally), 'skip' (skip downloading, only use tracks already found locally), 'force' (always download, don't check for local tracks)")
2525
flag.BoolVarP(&excludeLocal, "exclude-local", "e", false, "Exclude locally found tracks from the imported playlist")
2626
flag.BoolVar(&persist, "persist", true, "Keep playlists between generations")
27-
persistSet := flag.Lookup("persist").Changed
2827

2928
flag.Parse()
29+
persistSet := flag.Lookup("persist").Changed
3030

3131
// Validation for playlist
3232
if !contains(validPlaylists, playlist) {

src/downloader/downloader.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ func (c *DownloadClient) StartDownload(tracks *[]*models.Track) {
5959

6060
for _, d := range c.Downloaders {
6161
var g errgroup.Group
62-
g.SetLimit(2)
62+
g.SetLimit(1)
6363

6464
for _, track := range *tracks {
6565
if track.Present {

0 commit comments

Comments
 (0)