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

[deviantart] KeyError - 'files' #505

Closed
kattjevfel opened this issue Dec 5, 2019 · 2 comments
Closed

[deviantart] KeyError - 'files' #505

kattjevfel opened this issue Dec 5, 2019 · 2 comments

Comments

@kattjevfel
Copy link
Contributor

Afaik this is not covered by #488, feel free to close if it is.

~ » gallery-dl --verbose https://www.deviantart.com/zemotion/art/shirotsuki-85835672
[gallery-dl][debug] Version 1.11.2-dev
[gallery-dl][debug] Python 3.8.0 - Linux-5.4.1-arch1-1-fsync-x86_64-with-glibc2.2.5
[gallery-dl][debug] requests 2.22.0 - urllib3 1.25.7
[gallery-dl][debug] Starting DownloadJob for 'https://www.deviantart.com/zemotion/art/shirotsuki-85835672'
[gallery-dl][debug] Updating urllib3 ciphers
[deviantart][debug] Using default API credentials (client-id 5388)
[deviantart][debug] Using DeviantartDeviationExtractor for 'https://www.deviantart.com/zemotion/art/shirotsuki-85835672'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.deviantart.com:443
[urllib3.connectionpool][debug] https://www.deviantart.com:443 "GET /_napi/da-browse/shared_api/deviation/extended_fetch?deviationid=85835672&username=zemotion&type=art&include_session=false HTTP/1.1" 200 None
[deviantart][error] An unexpected error occurred: KeyError - 'files'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[deviantart][debug] 
Traceback (most recent call last):
  File "/usr/lib/python3.8/site-packages/gallery_dl/job.py", line 48, in run
    for msg in self.extractor:
  File "/usr/lib/python3.8/site-packages/gallery_dl/extractor/deviantart.py", line 630, in items
    deviation = self._extract(data)
  File "/usr/lib/python3.8/site-packages/gallery_dl/extractor/deviantart.py", line 643, in _extract
    files = deviation["files"]
KeyError: 'files'
~ » gallery-dl -k https://www.deviantart.com/zemotion/art/shirotsuki-85835672       
usage: gallery-dl [OPTION]... URL...
gallery-dl: error: unrecognized arguments: -k
~ » gallery-dl -K https://twitter.com/mochipaipai/status/1189670070290546688                         
~ » gallery-dl -K https://www.deviantart.com/zemotion/art/shirotsuki-85835672
[deviantart][error] An unexpected error occurred: KeyError - 'files'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
@Twi-Hard
Copy link

Twi-Hard commented Dec 5, 2019

This wasn't happening to me after issue #488 came up but now it is so it's new.

@mikf
Copy link
Owner

mikf commented Dec 5, 2019

The results of /shared_api/deviation/extended_fetch got changed.

There is now "media" field with all the components to build image URLs out of,
and the list of complete file URLs called "files" is gone.

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

No branches or pull requests

3 participants