Skip to content

Commit

Permalink
Merge pull request #944 from cyian-1756/xhamsterPageFix
Browse files Browse the repository at this point in the history
Fixed xhamster getnextpage
  • Loading branch information
cyian-1756 authored Sep 15, 2018
2 parents 89d4ce1 + b04d123 commit 192abc0
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -113,9 +113,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");
Expand Down

0 comments on commit 192abc0

Please sign in to comment.