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

[imgur] KeyError - 'media' #2557

Closed
sinclairkosh opened this issue May 4, 2022 · 0 comments
Closed

[imgur] KeyError - 'media' #2557

sinclairkosh opened this issue May 4, 2022 · 0 comments

Comments

@sinclairkosh
Copy link

there seems to be an issue with imgur and downloading albums that exists but don't contain media/images (or the media isn't visible) such as https://imgur.com/a/pjOnJA0

[gallery-dl][debug] Version 1.21.2
[gallery-dl][debug] Python 3.10.4 - Linux-5.10.104-linuxkit-x86_64-with-glibc2.31
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.9
[gallery-dl][debug] Starting DownloadJob for 'https://imgur.com/a/pjOnJA0'
[imgur][debug] Using ImgurAlbumExtractor for 'https://imgur.com/a/pjOnJA0'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): api.imgur.com:443
[urllib3.connectionpool][debug] https://api.imgur.com:443 "GET /post/v1/albums/pjOnJA0?include=media%2Ctags%2Caccount HTTP/1.1" 200 344
[imgur][error] An unexpected error occurred: KeyError - 'media'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[imgur][debug]
Traceback (most recent call last):
  File "/usr/local/lib/python3.10/site-packages/gallery_dl/job.py", line 76, in run
    for msg in extractor:
  File "/usr/local/lib/python3.10/site-packages/gallery_dl/extractor/imgur.py", line 212, in items
    images = album["media"]
KeyError: 'media'
@mikf mikf closed this as completed in 4598d32 May 4, 2022
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

1 participant