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

[newgrounds] "AttributeError - 'list' object has no attribute 'items'." for some /movies pages #2727

Closed
kattjevfel opened this issue Jul 2, 2022 · 1 comment
Labels

Comments

@kattjevfel
Copy link
Contributor

kattjevfel commented Jul 2, 2022

When downloading profiles that has /movies Sometimes, you get AttributeError - 'list' object has no attribute 'items'..

Can be reproduced with gallery-dl --ignore-config --verbose https://nonamoth.newgrounds.com/movies. The example here doesn't seem to have any movies, so not quite sure what makes it so special.

The problematic example shows Nothing matches your filters / search terms. while others show "" does not have any movie submissions..

katt@main ~ » gallery-dl --ignore-config --verbose https://nonamoth.newgrounds.com/movies
[gallery-dl][debug] Version 1.22.4-dev
[gallery-dl][debug] Python 3.10.5 - Linux-5.18.8-zen1-1-zen-x86_64-with-glibc2.35
[gallery-dl][debug] requests 2.27.1 - urllib3 1.26.9
[gallery-dl][debug] Starting DownloadJob for 'https://nonamoth.newgrounds.com/movies'
[newgrounds][debug] Using NewgroundsMoviesExtractor for 'https://nonamoth.newgrounds.com/movies'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): nonamoth.newgrounds.com:443
[urllib3.connectionpool][debug] https://nonamoth.newgrounds.com:443 "GET /movies?page=1&isAjaxRequest=1 HTTP/1.1" 200 667
[newgrounds][error] An unexpected error occurred: AttributeError - 'list' object has no attribute 'items'. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[newgrounds][debug] 
Traceback (most recent call last):
  File "/usr/lib/python3.10/site-packages/gallery_dl/job.py", line 77, in run
    for msg in extractor:
  File "/usr/lib/python3.10/site-packages/gallery_dl/extractor/newgrounds.py", line 43, in items
    for post_url in self.posts():
  File "/usr/lib/python3.10/site-packages/gallery_dl/extractor/newgrounds.py", line 268, in _pagination
    for year, items in data["items"].items():
AttributeError: 'list' object has no attribute 'items'
@kattjevfel kattjevfel changed the title [newgrounds] "AttributeError - 'list' object has no attribute 'items'." for /movies [newgrounds] "AttributeError - 'list' object has no attribute 'items'." for some /movies pages Jul 2, 2022
@mikf
Copy link
Owner

mikf commented Jul 3, 2022

The example here doesn't seem to have any movies, so not quite sure what makes it so special

My is guess is that this account had one or more movies posted at one point, but deleted them later.

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