dnsev-h / eze

Easy mode
https://dnsev-h.github.io/eze/
Other
35 stars 1 forks source link

Issue while downloading massive gallery #11

Open fullmetal1 opened 8 years ago

fullmetal1 commented 8 years ago

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

dnsev-h commented 8 years ago

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.

fullmetal1 commented 6 years ago

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.