-
-
Notifications
You must be signed in to change notification settings - Fork 1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Key error on kissmanga #868
Comments
The same thing happens in readcomicsonline which I believe is from the same people.
|
I'd just like to point out you should do ``` (on its own line) instead of a single ` to make output not look like horror. |
The relatively new v2 challenges aren't supported (*), but retrying often enough may yield a v1 challenge which can be solved. (*) and probably never will. They are far too complicated to do without a real browser.
This is due to Cloudflare's new "Checking your browser before accessing kissmanga.com." challenge to keep potential bots out. This new version is basically unsolvable without a real browser, but as @CaptainJawZ noted, sometimes one still gets the old solvable challenge. To get around this, you need to
|
kissmanga.com is gone and its code was removed in c874071 |
not sure if this is the correct way to describe the error, but as usual, the program told me to report with verbose so here I am.
I got similar errors running the -j option too, trying to download, and on different series. I can go in with the browser into the episodes just fine with no cloudflare/kissmanga captchas
gallery-dl -g https://kissmanga.com/Manga/Beastars --verbose
[gallery-dl][debug] Version 1.14.3-dev
[gallery-dl][debug] Python 3.8.2 - Linux-5.4.0-40-generic-x86_64-with-glibc2.29
[gallery-dl][debug] requests 2.22.0 - urllib3 1.25.8
[gallery-dl][debug] Starting UrlJob for 'https://kissmanga.com/Manga/Beastars'
[kissmanga][debug] Using KissmangaMangaExtractor for 'https://kissmanga.com/Manga/Beastars'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): kissmanga.com:443
[urllib3.connectionpool][debug] https://kissmanga.com:443 "GET /Manga/Beastars HTTP/1.1" 503 None
[kissmanga][info] Solving Cloudflare challenge
[urllib3.connectionpool][debug] Resetting dropped connection: kissmanga.com
[urllib3.connectionpool][debug] https://kissmanga.com:443 "GET /cdn-cgi/images/trace/jschal/nojs/transparent.gif?ray=5af0bcefcefbc677 HTTP/1.1" 200 42
[urllib3.connectionpool][debug] https://kissmanga.com:443 "GET /cdn-cgi/images/trace/jschal/js/nocookie/transparent.gif?ray=5af0bcefcefbc677 HTTP/1.1" 200 42
[kissmanga][error] An unexpected error occurred: KeyError - ' 100%; height: 100%; margin: 0; padding: 0;'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[kissmanga][debug]
Traceback (most recent call last):
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/job.py", line 61, in run
for msg in self.extractor:
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/extractor/common.py", line 441, in items
page = self.request(self.manga_url).text
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/extractor/kissmanga.py", line 24, in request
response = Extractor.request(self, url, **kwargs)
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/extractor/common.py", line 109, in request
response, domain, cookies = cloudflare.solve_challenge(
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/cloudflare.py", line 61, in solve_challenge
value = solve_js_challenge(page, parsed.netloc)
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/cloudflare.py", line 107, in solve_js_challenge
solution = evaluate_expression(data["expr"], page, netloc)
File "/usr/local/lib/python3.8/dist-packages/gallery_dl-1.14.3.dev0-py3.8.egg/gallery_dl/cloudflare.py", line 174, in evaluate_expression
value += VALUES[part]
KeyError: ' 100%; height: 100%; margin: 0; padding: 0;'
The text was updated successfully, but these errors were encountered: