From 06e566ac63ff1205ed84379f3aa1628c9ceaa7da Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 22 Mar 2018 00:01:51 -0400 Subject: [PATCH] Revert "Hentaifoundry Ripper no longer errors out when there is no next page" This reverts commit acb6356b946b433db563c2fda9ee6808a6b64f6f. --- .../rarchives/ripme/ripper/rippers/HentaifoundryRipper.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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 c0031548..561c4249 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,8 @@ public class HentaifoundryRipper extends AbstractHTMLRipper { @Override public Document getNextPage(Document doc) throws IOException { - if (doc.select("li.next > a").size() == 0) { + if (doc.select("li.next.hidden").size() != 0) { + // Last page throw new IOException("No more pages"); } Elements els = doc.select("li.next > a");