Fixed xhamster getnextpage
This commit is contained in:
parent
e8b65ab7d8
commit
b04d123fec
@ -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");
|
||||||
|
Loading…
Reference in New Issue
Block a user