From a5e30634ad3095bcf974e1309ca05e359d29ea72 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 25 Apr 2017 14:42:57 -0400 Subject: [PATCH] Now rips all pages --- .../ripme/ripper/rippers/HentaifoundryRipper.java | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java index 6127ce29..ca4e906e 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java @@ -68,7 +68,7 @@ public class HentaifoundryRipper extends AbstractHTMLRipper { @Override public Document getNextPage(Document doc) throws IOException { - if (doc.select("li.next").size() != 0) { + if (doc.select("li.next.hidden").size() != 0) { // Last page throw new IOException("No more pages"); } @@ -76,14 +76,6 @@ public class HentaifoundryRipper extends AbstractHTMLRipper { Element first = els.first(); String nextURL = first.attr("href"); nextURL = "http://www.hentai-foundry.com" + nextURL; - Response resp = Http.url("http://www.hentai-foundry.com/").response(); - cookies = resp.cookies(); - resp = Http.url("http://www.hentai-foundry.com/?enterAgree=1&size=1500") - .referrer("http://www.hentai-foundry.com/") - .cookies(cookies) - .response(); - // The only cookie that seems to matter in getting around the age wall is the phpsession cookie - cookies.putAll(resp.cookies()); return Http.url(nextURL) .referrer(url) .cookies(cookies)