Merge pull request #481 from cyian-1756/hentai-foundry
Hentaifoundry Ripper no longer errors out when there is no next page
This commit is contained in:
commit
c9d8ff3ec5
@ -68,8 +68,7 @@ public class HentaifoundryRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public Document getNextPage(Document doc) throws IOException {
|
public Document getNextPage(Document doc) throws IOException {
|
||||||
if (doc.select("li.next.hidden").size() != 0) {
|
if (doc.select("li.next > a").size() == 0) {
|
||||||
// Last page
|
|
||||||
throw new IOException("No more pages");
|
throw new IOException("No more pages");
|
||||||
}
|
}
|
||||||
Elements els = doc.select("li.next > a");
|
Elements els = doc.select("li.next > a");
|
||||||
|
Loading…
Reference in New Issue
Block a user