DMarby / humblebundle-ebook-downloader

An easy way to download ebooks from your humblebundle account
The Unlicense
231 stars 27 forks source link

Trim item name before appending extension #10

Closed kyrias closed 7 years ago

kyrias commented 7 years ago

Some of the humble bundles have items with spaces at the end. Trimming the string leads to much nicer looking filenames.


One bundle I had this with is the Neil Gaiman Rarities book bundle. (Though I'm also a bit annoyed that they named that one "Humble Books Bundle" rather than "Humble Book Bundle" like the rest of them :p)

DMarby commented 7 years ago

Awesome :)

This will make users who have previously used the tool download files again if they choose --all or similar, but I don't think it's worth the effort or extra code to add a check for that.

Merging and publishing this as version 1.0.3.