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

[pixiv] Error when downloading a users novels (AttributeError - 'NoneType') #4175

Closed
growingProvince opened this issue Jun 13, 2023 · 2 comments
Labels

Comments

@growingProvince
Copy link

I ran the following command:
gallery-dl https://www.pixiv.net/en/users/71433685/novels --verbose

The output I got is:

[gallery-dl][debug] Version 1.25.5 - Executable
[gallery-dl][debug] Python 3.8.10 - Windows-10-10.0.19045
[gallery-dl][debug] requests 2.28.2 - urllib3 1.26.15
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl.conf', 'C:\\Users\\user\\prog\\path\\gallery-dl.conf']
[gallery-dl][debug] Starting DownloadJob for 'https://www.pixiv.net/en/users/71433685/novels'
[pixiv][debug] Using PixivNovelUserExtractor for 'https://www.pixiv.net/en/users/71433685/novels'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): app-api.pixiv.net:443
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/novels?user_id=71433685 HTTP/1.1" 200 6595
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/user/detail?user_id=71433685 HTTP/1.1" 200 602
[pixiv][debug] Using download archive './gallery-dl/archive-pixiv.sqlite3'
[pixiv][debug] Active postprocessor modules: [MetadataPP]
[urllib3.connectionpool][debug] https://app-api.pixiv.net:443 "GET /v1/novel/text?novel_id=19994476 HTTP/1.1" 200 5290
# .\gallery-dl\pixiv\71433685\19994476_0.txt
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): www.pixiv.net:443
[urllib3.connectionpool][debug] https://www.pixiv.net:443 "GET /novel/show.php?id=19994476 HTTP/1.1" 200 None
[pixiv][error] An unexpected error occurred: AttributeError - 'NoneType' object has no attribute 'values'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[pixiv][debug]
Traceback (most recent call last):
  File "gallery_dl\job.pyc", line 96, in run
  File "gallery_dl\extractor\pixiv.pyc", line 878, in items
AttributeError: 'NoneType' object has no attribute 'values'

This error only appears with some users but not all of them.

@mikf mikf added the site:bug label Jun 13, 2023
@mikf
Copy link
Owner

mikf commented Jun 13, 2023

This error only happens when embeds is enabled and there's a jumpuri: marker that does not actually indicate an embedded image like jumpuri:FANBOX in this case.

@growingProvince
Copy link
Author

growingProvince commented Jun 13, 2023

Okay, so I would have to disable embeds for certain posts. Could there be an option not to stop the full download and just save everything it can? Stopping the whole download because it can't get an embed seems inconvenient.

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

2 participants