Skip to content
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

ValueError: Not enough values to unpack #51

Closed
jtara1 opened this issue Nov 30, 2017 · 2 comments
Closed

ValueError: Not enough values to unpack #51

jtara1 opened this issue Nov 30, 2017 · 2 comments

Comments

@jtara1
Copy link

jtara1 commented Nov 30, 2017

win10, powershell
python 3.6
gallery-dl 1.0.3-dev

PS C:\Users\James\Downloads> gallery-dl http://kissmanga.com/Manga/Uzumaki --verbose
[gallery-dl][debug] Version 1.0.3-dev
[gallery-dl][debug] Python 3.6.0 - Windows-10-10.0.15063-SP0
[gallery-dl][debug] Starting DownloadJob for 'http://kissmanga.com/Manga/Uzumaki'
[kissmanga][debug] Using KissmangaMangaExtractor for http://kissmanga.com/Manga/Uzumaki
[urllib3.connectionpool][debug] Starting new HTTP connection (1): kissmanga.com
[urllib3.connectionpool][debug] http://kissmanga.com:80 "GET /Manga/Uzumaki HTTP/1.1" 200 None
[kissmanga][debug] Using KissmangaChapterExtractor for http://kissmanga.com/Manga/Uzumaki/Uzumaki-Chapter-1?id=56778
[urllib3.connectionpool][debug] Starting new HTTP connection (1): kissmanga.com
[urllib3.connectionpool][debug] http://kissmanga.com:80 "GET /Manga/Uzumaki/Uzumaki-Chapter-1?id=56778 HTTP/1.1" 302 Non
e
[urllib3.connectionpool][debug] http://kissmanga.com:80 "GET /Message/AreYouHuman?reUrl=%2fManga%2fUzumaki%2fUzumaki-Cha
pter-1%3fid%3d56778 HTTP/1.1" 200 None
[kissmanga][error] An unexpected error occurred: ValueError - not enough values to unpack (expected 2, got 0). Please ru
n 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
Traceback (most recent call last):
  File "c:\python36\lib\site-packages\gallery_dl\job.py", line 58, in run
    for msg in self.extractor:
  File "c:\python36\lib\site-packages\gallery_dl\extractor\kissmanga.py", line 122, in items
    data = self.get_job_metadata(page)
  File "c:\python36\lib\site-packages\gallery_dl\extractor\kissmanga.py", line 133, in get_job_metadata
    manga, cinfo = title.split("\n")[1:3]
ValueError: not enough values to unpack (expected 2, got 0)
[kissmanga][debug] Using KissmangaChapterExtractor for http://kissmanga.com/Manga/Uzumaki/Uzumaki-Chapter-2?id=56786
@mikf
Copy link
Owner

mikf commented Nov 30, 2017

It seems like you got redirected to
http://kissmanga.com/Message/AreYouHuman?reUrl=%2fManga%2fUzumaki%2fUzumaki-Chapter-1%3fid%3d56778
for issuing too many HTTP requests to the site.

Maybe visiting this URL and solving the CAPTCHA in your webbrowser might help, maybe changing your User-Agent string is enough (-o "user-agent=<whatever>"), but you probably just have to wait a certain amount of time before using kissmanga again.

I'm going to add a better error message for this case, but that is all that can be done here.

@jtara1
Copy link
Author

jtara1 commented Dec 1, 2017

Ok, visiting that URL and verifying myself as human (twice) fixed it. It's a good thing gallery-dl skips over media already downloaded.

This manga was relatively small (~600 images (20 chapters)). That'd be bad if I had to do the google captcha every 10 chapters or whatever.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants