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

[Devianart] Issue downloading from Devianart #5960

Closed
GaelZiade opened this issue Aug 7, 2024 · 0 comments
Closed

[Devianart] Issue downloading from Devianart #5960

GaelZiade opened this issue Aug 7, 2024 · 0 comments

Comments

@GaelZiade
Copy link

GaelZiade commented Aug 7, 2024

I was already downloading the gallery when the files stopped coming because of an error I recall being a "token refresh" or something of the likes. Found the same error in an older issue being fixed by reinstalling gallery-dl and one dependency using pipx and when I tried to run the download again this error pops up

C:\Users\Gael Ziade>gallery-dl --verbose "https://www.deviantart.com/wen-m/gallery/8496170/featured"
gallery-dl: Version 1.27.2
gallery-dl: Python 3.12.5 - Windows-10-10.0.19045-SP0
gallery-dl: requests 2.32.3 - urllib3 2.2.2
gallery-dl: Configuration Files ['%APPDATA%\\gallery-dl\\config.json']
gallery-dl: Starting DownloadJob for 'https://www.deviantart.com/wen-m/gallery/8496170/featured'
deviantart: Using DeviantartFolderExtractor for 'https://www.deviantart.com/wen-m/gallery/8496170/featured'
deviantart: Using custom API credentials (client-id 40133)
urllib3.connectionpool: Starting new HTTPS connection (1): www.deviantart.com:443
urllib3.connectionpool: https://www.deviantart.com:443 "GET /api/v1/oauth2/user/profile/wen-m HTTP/11" 200 373
urllib3.connectionpool: https://www.deviantart.com:443 "GET /api/v1/oauth2/gallery/folders?username=Wen-M&offset=0&limit=50&mature_content=true HTTP/11" 200 1801
urllib3.connectionpool: https://www.deviantart.com:443 "GET /api/v1/oauth2/gallery/054D2DAE-EB39-C417-54BD-AD1040EC4718?username=Wen-M&offset=0&limit=24&mature_content=true&mode=newest HTTP/11" 200 None
urllib3.connectionpool: https://www.deviantart.com:443 "GET /api/v1/oauth2/deviation/metadata?deviationids%5B0%5D=49A6EBC3-221F-0BA0-3039-E816CBBC94DF&deviationids%5B1%5D=28A570F5-82E6-B196-A788-32E27BDE07C2&deviationids%5B2%5D=AE6F07F4-70DA-5705-B0C6-E8395C79B1AD&deviationids%5B3%5D=FB22C38F-F4D5-5974-ED5E-5FD10DC38C91&deviationids%5B4%5D=8CB2A383-CE30-C1D6-F3CE-DDE0EEB7C48A&deviationids%5B5%5D=AC1CD45E-4CED-C646-C864-ECECCC9BDCD6&deviationids%5B6%5D=D22E9E79-0CB9-20DD-590D-BE691D87A64E&deviationids%5B7%5D=95BC36BF-4D82-647B-7884-4000C6ADF5AF&deviationids%5B8%5D=33AB938C-B8FC-FE9B-B874-FE85307AE203&deviationids%5B9%5D=80519BB1-C595-0352-248B-89BEE725228D&deviationids%5B10%5D=E2C9792C-4B14-1E2B-3FE8-31AE24D402A3&deviationids%5B11%5D=7727B148-D692-C60E-76A7-5BF8159F0687&deviationids%5B12%5D=E82C53C5-FE70-BE85-C4BC-8E7E6FED383E&deviationids%5B13%5D=D341897F-9A64-CF0C-0D1E-079415EAA279&deviationids%5B14%5D=48DF9025-AC75-1523-2D37-23790A4FFE2A&deviationids%5B15%5D=A6B16611-48D3-759E-BDC6-366EF11E8738&deviationids%5B16%5D=C7BB3D88-4D01-FBE0-C42F-448AD6D13DFF&deviationids%5B17%5D=CF82E49E-4447-75DC-D6F6-5B2803328A80&deviationids%5B18%5D=938A123D-F26F-B142-0EFC-CA3591F23601&deviationids%5B19%5D=51EEFA1D-DAEA-1296-05FA-E087E2D77371&deviationids%5B20%5D=118AFEFD-66EB-9BB9-1478-5AA55637F5C5&deviationids%5B21%5D=656FB73C-270D-D594-4B05-1ED95B1A4FDC&deviationids%5B22%5D=19D6B601-E85E-09D5-BB12-D6F0110351C6&deviationids%5B23%5D=6E7D935A-C86B-DB2A-B542-001F168F2CE5&mature_content=true HTTP/11" 200 1805
deviantart: An unexpected error occurred: KeyError - 'category'. 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:
Traceback (most recent call last):
  File "C:\Users\Gael Ziade\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 151, in run
    for msg in extractor:
               ^^^^^^^^^
  File "C:\Users\Gael Ziade\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 150, in items
    self.prepare(deviation)
  File "C:\Users\Gael Ziade\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 679, in prepare
    DeviantartExtractor.prepare(self, deviation)
  File "C:\Users\Gael Ziade\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\deviantart.py", line 249, in prepare
    deviation["da_category"] = deviation["category"]
                               ~~~~~~~~~^^^^^^^^^^^^
KeyError: 'category'
@GaelZiade GaelZiade changed the title Issue downloading from Devianart [Devianart] Issue downloading from Devianart Aug 7, 2024
mikf added a commit that referenced this issue Aug 8, 2024
'deviation' objects returned by the OAuth API no longer include a
'category' or 'category_path' value.
@mikf mikf closed this as completed Aug 8, 2024
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

2 participants