Changed hentaifoundry file name format

This commit is contained in:
cyian-1756 2017-03-17 18:09:52 -04:00
parent 306b7ec9cb
commit 2c0010f9df

View File

@ -94,11 +94,13 @@ public class HentaifoundryRipper extends AbstractHTMLRipper {
logger.info("Couldn't find user & image ID in " + thumb.attr("href")); logger.info("Couldn't find user & image ID in " + thumb.attr("href"));
continue; continue;
} }
String[] titleSplit = thumb.attr("herf").split("/");
String title = titleSplit[titleSplit.length -1];
String user = imgMatcher.group(1), String user = imgMatcher.group(1),
imageId = imgMatcher.group(2); imageId = imgMatcher.group(2);
String image = "http://pictures.hentai-foundry.com//"; String image = "http://pictures.hentai-foundry.com//";
image += user.toLowerCase().charAt(0); image += user.toLowerCase().charAt(0);
image += "/" + user + "/" + imageId + ".jpg"; image += "/" + user + "/" + imageId + "/" + user + "-" + imageId + title + ".png";
imageURLs.add(image); imageURLs.add(image);
} }
return imageURLs; return imageURLs;