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

[Fanbox] list indices must be integers or slices, not str #5949

Closed
biggestsonicfan opened this issue Aug 6, 2024 · 1 comment
Closed

[Fanbox] list indices must be integers or slices, not str #5949

biggestsonicfan opened this issue Aug 6, 2024 · 1 comment

Comments

@biggestsonicfan
Copy link

Verbose output:

xxx@DESKTOP-5ETERDG:~/gits> gallery-dl https://artist.fanbox.cc/ --verbose
gallery-dl: Version 1.27.2
gallery-dl: Python 3.11.9 - Linux-5.15.153.1-microsoft-standard-WSL2-x86_64-with-glibc2.39
gallery-dl: requests 2.32.3 - urllib3 2.2.2
gallery-dl: Configuration Files ['${HOME}/.gallery-dl.conf']
gallery-dl: Starting DownloadJob for 'https://artist.fanbox.cc/'
fanbox: Using FanboxCreatorExtractor for 'https://artist.fanbox.cc/'
cookies: Extracting cookies from /run/media/xxx/c/Users/bigge/AppData/Roaming/Mozilla/Firefox/Profiles/seuqhdmj.default-release/cookies.sqlite
cookies: Extracted 12 cookies from Firefox
urllib3.connectionpool: Starting new HTTPS connection (1): api.fanbox.cc:443
urllib3.connectionpool: https://api.fanbox.cc:443 "GET /post.listCreator?creatorId=artist&limit=10 HTTP/11" 200 3586
fanbox: An unexpected error occurred: TypeError - list indices must be integers or slices, not str. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
fanbox:
Traceback (most recent call last):
  File "/home/xxx/py-scripts/venv/lib64/python3.11/site-packages/gallery_dl/job.py", line 151, in run
    for msg in extractor:
  File "/home/xxx/py-scripts/venv/lib64/python3.11/site-packages/gallery_dl/extractor/fanbox.py", line 52, in items
    for content_body, post in self.posts():
  File "/home/xxx/py-scripts/venv/lib64/python3.11/site-packages/gallery_dl/extractor/fanbox.py", line 63, in _pagination
    for item in body["items"]:
                ~~~~^^^^^^^^^
TypeError: list indices must be integers or slices, not str
@mikf
Copy link
Owner

mikf commented Aug 7, 2024

Should be fixed with b4733b7.

@mikf mikf closed this as completed Aug 7, 2024
@mikf mikf pinned this issue Aug 7, 2024
@mikf mikf unpinned this issue Aug 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants