From acb6356b946b433db563c2fda9ee6808a6b64f6f Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 17 Mar 2018 19:52:47 -0400 Subject: [PATCH] Hentaifoundry Ripper no longer errors out when there is no next page --- .../rarchives/ripme/ripper/rippers/HentaifoundryRipper.java | 3 +-- 1 file changed, 1 insertion(+), 2 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 561c4249..c0031548 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/HentaifoundryRipper.java @@ -68,8 +68,7 @@ public class HentaifoundryRipper extends AbstractHTMLRipper { @Override public Document getNextPage(Document doc) throws IOException { - if (doc.select("li.next.hidden").size() != 0) { - // Last page + if (doc.select("li.next > a").size() == 0) { throw new IOException("No more pages"); } Elements els = doc.select("li.next > a");