g.e-hentai.org downloader fixed *

By keating Last update Mar 21, 2010 — Installed 23,887 times.

Issue after 7 images

in
Subscribe to Issue after 7 images 4 posts, 4 voices



KDB9000 User
Firefox

I am running into an issue that has happened on more then one gallery. It generates a link up to image 7, then it generates a link for the last image. I tried to skip the first 8 images and go from there, but after a while it starts back at one (after about 20 images or so) and then it gets to image 7 and generates a link for the last image. Any ideas on what could be causing this or how to fix this issue?

 
miofag Scriptwright
Firefox

Same problem here.

 
HKG Sherlock User
Chrome

The regular expression on the variable re_img is too simple to let the button image link to become match with it.

replace:

 var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([^"]{120,})"/;

as:

var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([http:\/\/]{7}[^a-zA-Z]+\.[a-zA-Z0-9:\/\-=.?&;]+)"/;

Find me if any problem(s) still there.

 
casatodo total Scriptwright
Firefox

HKG Sherlock is right, but the regular expression suggested by him doesn't work (causes parse error), here's the correction (ironically tested on a corrector yui gallery xD)

var re_img = /<a +href="([^"]*)"[^>]*>[ \t]*<img +src="([^"]{120,})(jpg|png|gif)"/;

the "(jpg|png|gif)" part is intended to force the regular expression to match if the last words of the filter match with those words (instead of "ffs" or "qqm" that affects the order and cause the parser to go back, causing the issue)

Cross
Presentational HTML allowed.
Use <code> for inline code and <pre> for code blocks. Use &lt; and &gt; for literal < and >.
We help break paragraphs and link your links.
or cancel