--exclude option is inverted
Closed this issue · 3 comments
pfrenssen commented
When I run the following command, the --exclude mobi epub
option seems to be inverted, it is downloading only .mobi
and .epub
files, and is excluding .pdf
files:
$ hbd download --cookie-file ~/humblebundle/hbd-cookies.txt --library-path ~/humblebundle/ --exclude mobi epub --progress
Checking bundle: Humble Book Bundle - Design Like a Designer by Adams Media
Downloading: /home/pieter/humblebundle/Humble Book Bundle - Design Like a Designer by Adams Media/Typography for the People/typographyforthepeople.mobi
100% [==================================================]
Downloading: /home/pieter/humblebundle/Humble Book Bundle - Design Like a Designer by Adams Media/Typography for the People/typographyforthepeople.epub
100% [==================================================]
Skipping the file typographyforthepeople.pdf
Downloading: /home/pieter/humblebundle/Humble Book Bundle - Design Like a Designer by Adams Media/Cultivating Creativity - Daily Rituals for Visual Inspiration/cultivatingcreativity.mobi
100% [==================================================]
Downloading: /home/pieter/humblebundle/Humble Book Bundle - Design Like a Designer by Adams Media/Cultivating Creativity - Daily Rituals for Visual Inspiration/cultivatingcreativity.epub
100% [==================================================]
Skipping the file cultivatingcreativity.pdf
pfrenssen commented
Similarly, the --include
option also seems to be inverted, if I pass --include mobi epub
then it only downloads PDF files.
xtream1101 commented
This just happened in the version 0.2.0. That's what I get for not having tests when refactoring. Its been fixed and tests have been added for this case.
pfrenssen commented
Thanks!