From b04d123fec0dadaebe40df4f27ddce0f4a48dd91 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sat, 15 Sep 2018 14:30:16 -0400 Subject: [PATCH] Fixed xhamster getnextpage --- .../com/rarchives/ripme/ripper/rippers/XhamsterRipper.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java index 86bb81b30..ae69decf5 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/XhamsterRipper.java @@ -69,9 +69,9 @@ public boolean canRip(URL url) { @Override public Document getNextPage(Document doc) throws IOException { - if (doc.select("a.next").first() != null) { - if (doc.select("a.next").first().attr("href").startsWith("http")) { - return Http.url(doc.select("a.next").first().attr("href")).get(); + if (doc.select("a[data-page=next]").first() != null) { + if (doc.select("a[data-page=next]").first().attr("href").startsWith("http")) { + return Http.url(doc.select("a[data-page=next]").first().attr("href")).get(); } } throw new IOException("No more pages");