eze
eze copied to clipboard
Issue while downloading massive gallery
Trying to download galleries larger than your alloted bandwidth results in an error.
After waiting for the cool down to finish, and manually resuming the download, it quickly skips through all the remaining files, indicating that it has downloaded each one, but never being in the process of downloading. After the download finishes, all the files that were 'downloaded' after the cool down are just text files with "Invalid token" as their content.
https://exhentai.org/g/770497/c57d6fc405/
An example of a gallery for which the bug occurs.
I have downloading through the H@H network enabled, which is what I suspect may be causing the issue
As a general note to myself: This problem occurs because the image URLs are fetch beforehand. On large galleries, the tokens related to these URLs expire by the time they actually start downloading.
Example of a response I've recieved:
An error has occurred. (403)
Not sure how easy this is to fix, given the sloppy architecture of the downloader.
Hmmm, well I guess the easiest way would be just to download until it 404's, then periodically (after cooldown) try to refetch the other URLs.