MestreLion / humblebundle

API for managing Humble Bundle games library
GNU General Public License v3.0
209 stars 38 forks source link

Download all matching files #30

Open Ram-Z opened 7 years ago

Ram-Z commented 7 years ago

Currently the application will refuse to download anything if the filters match more than one download url.

It would be nice if we could add a flag that would download all remaining matching urls for a game.

Also, if the default would be interactive that would be great, i.e.:

Too many download candidates for 'Organ Trail'
   1. 'MP3'   97.8 MB organtrail_ost_mp3_1370892706.zip
   2. 'FLAC' 800.1 MB organtrail_ost_flac_1370892706.zip
Press the number to download: 
MestreLion commented 6 years ago

Is there any real case where using --type is not enough to narrow the candidates to 1?

Ram-Z commented 6 years ago

It's been a while... but I believe that my intention was to have it download all remaining canditates. I.e. if the filters narrowed it down to 2 candidates it would download both of them.

MestreLion commented 6 years ago

I'm not a fan of interactive scripts, as humblebundle should be fully scriptable and automated whenever possible. I think an --all command-line option, or pehaps even better -all-candidates, downloading all candidates after filters are applied would be a very good solution. Mass downloads are a common request, see #14 .

Unfortunately I currently don't have the time to code such option, but patches and PRs are much welcome, as always.

Meanwhile, it's worth checking if -F|--server-file is a good workaround for you. See #4