Xonshiz / anime-dl

Anime-dl is a command-line program to download anime from CrunchyRoll and Funimation.
MIT License
229 stars 37 forks source link

ValueError: Error parsing Cloudflare IUAM Javascript challenge #49

Closed leptoid closed 6 years ago

leptoid commented 6 years ago

Looks like it is broken again. I guess Cloudflare changed their scripts. Screen Output

c:\>anime-dl -u ploplord -p DukePlopsalots -r 480p -rn 9 -i http://www.crunchyroll.com/twin-star-exorcists
Trying to login...
Traceback (most recent call last):
  File "anime_dl\__main__.py", line 18, in <module>
  File "anime_dl\__main__.py", line 75, in main
  File "anime_dl\AnimeDL.py", line 30, in __init__
  File "anime_dl\sites\crunchyroll.py", line 54, in __init__
  File "anime_dl\sites\crunchyroll.py", line 82, in webpagedownloader
  File "requests\sessions.py", line 521, in get
  File "site-packages\cfscrape\__init__.py", line 47, in request
  File "site-packages\cfscrape\__init__.py", line 77, in solve_cf_challenge
  File "site-packages\cfscrape\__init__.py", line 107, in solve_challenge
ValueError: Error parsing Cloudflare IUAM Javascript challenge. Cloudflare may have changed their technique, or there may be a bug in the script.

Please read https://github.com/Anorov/cloudflare-scrape#updates, then file a bug report at https://github.com/Anorov/cloudflare-scrape/issues.
[9224] Failed to execute script __main__
c:\>
leptoid commented 6 years ago

Oh, I should let you know, "ploplord" and "DukePlopsalots" are not my actual login credentials. lol

leptoid commented 6 years ago

and... I found my issue. I was testing using -rn for a single episode number instead of multiple

-rn 9
vs
-rn 9-10

I knew the syntax and have used it properly lots of times, It just seemed to make sense that this could be done with a single digit as a possibility. Programming does not work that way. It is an exact science.

This could be marked as resolved or enhancement (to make it so you can just use range with episode number).