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

[Exhentai] URL of the next image when the run gets interrupted #4782

Closed
a84r7a3rga76fg opened this issue Nov 6, 2023 · 5 comments
Closed

Comments

@a84r7a3rga76fg
Copy link

a84r7a3rga76fg commented Nov 6, 2023

If anything interrupts the run by CTRL+C, getting banned or whatever, can the URL of the next image be given? If the URL is a gallery with 100 files and 54 files were downloaded, then the URL of the next image would be the 55th file.

Just noticed that it does give the URL to the next image when getting banned but for some reason it happens very rarely. That's a bug.

This is what it says when you get banned and fails at giving the URL of the next image of an incomplete gallery download [exhentai][error] Unable to download data: JSONDecodeError: Expecting value: line 1 column 1 (char 0)

@JSouthGB
Copy link
Contributor

JSouthGB commented Nov 6, 2023

gallery-dl will attempt the first 54 again and assuming you have an archive db setup, skip them and start downloading on the 55th. I find anything that's already been downloaded and getting skipped goes pretty quickly.

@a84r7a3rga76fg
Copy link
Author

You'd get banned If you were to do that on a gallery with about 1000 files if you're not using a century long cooldown.

@JSouthGB
Copy link
Contributor

JSouthGB commented Nov 6, 2023

I'm not familiar with Exhentai, but perhaps when you run it again after the interruption use a --range flag?

@a84r7a3rga76fg
Copy link
Author

That could work but would be more convenient with an URL to the next image.

Exhentai bans your IP (or account if you're a paid user) if you don't use century long delays between each HTML/API request.

@thegoldenboy542
Copy link

gallery-dl will attempt the first 54 again and assuming you have an archive db setup, skip them and start downloading on the 55th. I find anything that's already been downloaded and getting skipped goes pretty quickly.

archive db doesn't work with --zip cmd.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

4 participants