Fixed xhamster getnextpage

This commit is contained in:
cyian-1756 2018-09-15 14:30:16 -04:00
parent e8b65ab7d8
commit b04d123fec

View File

@ -69,9 +69,9 @@ public class XhamsterRipper extends AbstractHTMLRipper {
@Override @Override
public Document getNextPage(Document doc) throws IOException { public Document getNextPage(Document doc) throws IOException {
if (doc.select("a.next").first() != null) { if (doc.select("a[data-page=next]").first() != null) {
if (doc.select("a.next").first().attr("href").startsWith("http")) { if (doc.select("a[data-page=next]").first().attr("href").startsWith("http")) {
return Http.url(doc.select("a.next").first().attr("href")).get(); return Http.url(doc.select("a[data-page=next]").first().attr("href")).get();
} }
} }
throw new IOException("No more pages"); throw new IOException("No more pages");