1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-27 15:49:50 +02:00

Merge pull request #944 from cyian-1756/xhamsterPageFix

Fixed xhamster getnextpage
This commit is contained in:
cyian-1756
2018-09-15 14:53:37 -04:00
committed by GitHub

View File

@@ -113,9 +113,9 @@ public class XhamsterRipper extends AbstractHTMLRipper {
@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");