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

[Bug] VkPhotosExtractor fails with "ValueError - too many values to unpack (expected 2)" #1952

Closed
v-delta opened this issue Oct 15, 2021 · 2 comments
Labels

Comments

@v-delta
Copy link
Contributor

v-delta commented Oct 15, 2021

gallery-dl --verbose "https://vk.com/album221469416_00"

produces

[gallery-dl][debug] Version 1.19.0
[gallery-dl][debug] Python 3.9.5 - macOS-11.6-x86_64-i386-64bit
[gallery-dl][debug] requests 2.25.1 - urllib3 1.26.4
[gallery-dl][debug] Starting DownloadJob for 'https://vk.com/album221469416_00'
[vk][debug] Using VkPhotosExtractor for 'https://vk.com/album221469416_00'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): vk.com:443
[urllib3.connectionpool][debug] https://vk.com:443 "GET /album221469416_00 HTTP/1.1" 200 44818
[vk][debug] Sleeping for 0.996 seconds
[urllib3.connectionpool][debug] https://vk.com:443 "POST /photos HTTP/1.1" 200 4282
[vk][error] An unexpected error occurred: ValueError - too many values to unpack (expected 2). Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[vk][debug]
Traceback (most recent call last):
  File "/Users/me/Library/Python/3.9/lib/python/site-packages/gallery_dl/job.py", line 80, in run
    for msg in extractor:
  File "/Users/me/Library/Python/3.9/lib/python/site-packages/gallery_dl/extractor/vk.py", line 94, in items
    offset, html = self.request(
ValueError: too many values to unpack (expected 2)
@Hrxn
Copy link
Contributor

Hrxn commented Oct 15, 2021

Probably a site change..

Anyway, might be time to consider authentication support for VK. You need to be signed in to access certain groups, galleries. etc.
I think there's actually a lot of interesting content which I believe is originally from there.

@mikf
Copy link
Owner

mikf commented Oct 16, 2021

No, that's a bug. It treats /album221469416_00 the same as it would /album221469416 even though they need to be handled differently.

@mikf mikf added the bug label Oct 16, 2021
@mikf mikf closed this as completed in c19e762 Oct 23, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants