mikf / gallery-dl

Command-line program to download image galleries and collections from several image hosting sites
GNU General Public License v2.0
11.48k stars 941 forks source link

exhentai configured limit value #1446

Closed hellupline closed 3 years ago

hellupline commented 3 years ago

hello mikf, I see u removed the limit config for exhentai on this commit

would it be possible to re-add it ? I use this feature for better control of my limit usage, I left 10% as a margin for safe measure and other uses,

I also sometimes run gallery-dl in parallel, having an 10% margin is usefull in case one of the processes goes above the configured limt, he would not run into my actual limit

hellupline commented 3 years ago

I also noticed in this commit u check for content-length == 137, but i noticed the gif for 509 error is content-length: 28658,

also, I notieced exhentai sometimes send a html instead of an actual image

mikf commented 3 years ago

Would it be possible to re-add it?

Sure.

the gif for 509 error is content-length: 28658,

https://github.com/mikf/gallery-dl/commit/abafe71e049d5a8de64757d27f93c3bc85729c74 checks for the "you have exceeded the image limit" HTML response when downloading an original file when over the limit, not the 509 gif.