diogogmt / humblebundle-downloader

Download book from Humble Bundles
MIT License
31 stars 3 forks source link

Add option to exclude (or focus on) one format #8

Open katrinleinweber opened 4 years ago

katrinleinweber commented 4 years ago

Hello & thanks for publishing this tool! It has helped me order my HB backups nicely :-)

There is one feature request I'd like to make: an --only= or --exclude= option to pass a format, which is then only downloaded or skipped, so people can save bandwidth & storage space if they know they either don't need a specific format, or only that one.

Thank you :-) Maybe a good item for next Hacktoberfest?

affinityv commented 4 years ago

Hi, I've added an ability to use a .ignore file in my repo.

https://github.com/affinityv/humblebundle-downloader

There is also a shell script to find out what the download types are for the bundle.

affinityv commented 4 years ago

Further updates, can now use .include and .exclude files as well as do fresh downloads without re-downloading every file. See the updated README.md for more details.

katrinleinweber commented 4 years ago

Thank you for those features & the pointer :-) I'll give it a try with the next interesting HumbleBundle!

diogogmt commented 4 years ago

@katrinleinweber

You can specify the asset type when downloading a bundle, to only download pdf and epub assets; hbd download -key xxx -types pdf,epub

I like the idea of being able to either include or exclude the types though.

By default the types arg can be inclusive, and we could add a new exclude flag which would instead exclude the defined types.

katrinleinweber commented 4 years ago

Seeing it now, -types is 90% of the use-case already, thank you :-)