Girbons / comics-downloader

tool to download comics and manga in pdf/epub/cbr/cbz from a website
MIT License
456 stars 49 forks source link

Range option ignores non integers #94

Closed Mycah closed 2 years ago

Mycah commented 2 years ago

Describe the bug Running the application with a range ignores all non-integer numbers. Using integers in the range command causes an error.

To Reproduce comics-downloader -url=https://mangakakalot.com/manga/qf926960 -range=20-21 -format=cbz skips chapter 20.5

comics-downloader -url=https://mangakakalot.com/manga/qf926960 -range=20.5-20.5 -format=cbz

returns:

ERRO[0000] There was an error while checking for a new comics-downloader version
INFO[0000] Downloading...
ERRO[0000] wrong the start range value: strconv.Atoi: parsing "20.5": invalid syntax

Expected behavior It should download issue 20, 20.5, and 21. Second example should download issue 20.5

Screenshots If applicable, add screenshots to help explain your problem.

Desktop (please complete the following information):

Additional context n/a

Girbons commented 2 years ago

Hi @Mycah,

thank you for the report I'll look into it