cavaliergopher / grab

A download manager package for Go
BSD 3-Clause "New" or "Revised" License
1.38k stars 151 forks source link

making getbatch accepts multiple destinations #49

Closed hbakhtiyor closed 5 years ago

hbakhtiyor commented 5 years ago

currently getbatch accept only one destination, can't set filename for each urls.

cavaliercoder commented 5 years ago

GetBatch is a very simple abstraction that doesn't allow granular configuration of each request, like distinct destination paths. Under the hood, it creates Requests for you and passes them to Client.DoBatch.

To configure each request, create as many unique sRequests as you like and pass them directly to Client.DoBatch. See: https://godoc.org/github.com/cavaliercoder/grab#Client.DoBatch