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

Patreon: An unexpected error occurred: IndexError - list index out of range #713

Closed
calboi91 opened this issue Apr 28, 2020 · 1 comment
Closed
Labels

Comments

@calboi91
Copy link

Hi,

I just downloaded the latest release v1.13.5, and I found this error for patreon.

[patreon][error] An unexpected error occurred: IndexError - list 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 .
[patreon][debug] 
Traceback (most recent call last):
  File "gallery_dl\job.py", line 49, in run
  File "gallery_dl\extractor\patreon.py", line 50, in items
IndexError: list index out of range

This error seems to pop up only for certain creators and not everyone.

mikf added a commit that referenced this issue Apr 29, 2020
Instead of accessing a specific part of a download URL, potentially
causing an exception if it doesn't exist, we're now searching through
all parts for a potential MD5 hash without ever raising an exception.
@mikf mikf added the bug label Apr 29, 2020
@mikf
Copy link
Owner

mikf commented Apr 29, 2020

The fix for #693 made some assumptions about Patreon's download URL structure, which didn't hold true. The new method to get MD5 hashes from download URLs (46b9a4d) should never raise an exception.

@mikf mikf closed this as completed Apr 29, 2020
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