sdaqo / anipy-cli

Little tool in python to watch and download anime from the terminal (the better way to watch anime). Also applicable as an API
https://sdaqo.github.io/anipy-cli
GNU General Public License v3.0
270 stars 40 forks source link

Download Mode incorrectly shows that range is invalid when going from single to double digit #179

Closed GreatTeacherOni closed 4 months ago

GreatTeacherOni commented 4 months ago

Describe the bug Following error appears:

Input Episode Range(s) from episodes 1 to 12: 8-12
anipy-cli: error: invalid range: 8-12

To Reproduce Steps to reproduce the behavior:

  1. Run anipy-cli -D
  2. Search for any anime show
  3. After dub selection it asks for range. Input a selection starting from a single digit and ending at a double digit, e.g. 8-12.

Expected behavior Download should start. No error should be thrown.

Info Post your output of pip show anipy-cli I ran anipy-cli from cloned gitrepo (flake.nix / shell.nix) so no pip output available anipy-cli version: 3.1.5

Platform

Additional context Workaround: Type 08-12 which makes it single digit with preceding 0.

sdaqo commented 4 months ago

thanks for the report, fixed