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

[warosu][error] An unexpected error occurred: IndexError - string index out of range #5289

Closed
KonoVitoDa opened this issue Mar 5, 2024 · 3 comments
Labels

Comments

@KonoVitoDa
Copy link

Error occurred on this 4chan/warosu thread: https://warosu.org/jp/thread/45886210

PS C:\Users\Vitor> gallery-dl https://warosu.org/jp/thread/45886210 --verbose
[gallery-dl][debug] Version 1.26.8
[gallery-dl][debug] Python 3.12.0 - Windows-10-10.0.19045-SP0
[gallery-dl][debug] requests 2.31.0 - urllib3 2.1.0
[gallery-dl][debug] Configuration Files ['%USERPROFILE%\\gallery-dl\\config.json']
[gallery-dl][debug] Starting DownloadJob for 'https://warosu.org/jp/thread/45886210'
[warosu][debug] Using WarosuThreadExtractor for 'https://warosu.org/jp/thread/45886210'
[urllib3.connectionpool][debug] Starting new HTTPS connection (1): warosu.org:443
[urllib3.connectionpool][debug] https://warosu.org:443 "GET /jp/thread/45886210 HTTP/1.1" 200 None
[warosu][error] An unexpected error occurred: IndexError - string index out of range. Please run gallery-dl again with the --verbose flag, copy its output and report this issue on https://github.com/mikf/gallery-dl/issues .
[warosu][debug]
Traceback (most recent call last):
  File "C:\Users\Vitor\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\job.py", line 127, in run
    for msg in extractor:
  File "C:\Users\Vitor\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\warosu.py", line 34, in items
    posts = self.posts(page)
            ^^^^^^^^^^^^^^^^
  File "C:\Users\Vitor\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\warosu.py", line 62, in posts
    return [self.parse(post) for post in page.split(needle)]
            ^^^^^^^^^^^^^^^^
  File "C:\Users\Vitor\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\warosu.py", line 68, in parse
    self._extract_image(post, data)
  File "C:\Users\Vitor\AppData\Local\Programs\Python\Python312\Lib\site-packages\gallery_dl\extractor\warosu.py", line 95, in _extract_image
    if url[0] == "/":
       ~~~^^^
IndexError: string index out of range
@KonoVitoDa
Copy link
Author

@mikf How can I get the newest version with the fix? I'm currently using the pip variant on Windows 10.

@mikf
Copy link
Owner

mikf commented Mar 6, 2024

https://github.com/mikf/gallery-dl?tab=readme-ov-file#pip

py -3 -m pip install -U -I --no-deps --no-cache-dir https://github.com/mikf/gallery-dl/archive/master.tar.gz

or this one, which might be better

py -3 -m pip install -U --no-deps --force-reinstall https://github.com/mikf/gallery-dl/archive/master.tar.gz

@KonoVitoDa
Copy link
Author

Thank you very much!

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