1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-17 19:26:34 +02:00

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:
cyian-1756
2018-03-23 23:39:20 -04:00
committed by GitHub

View File

@@ -68,8 +68,7 @@ public class HentaifoundryRipper extends AbstractHTMLRipper {
@Override
public Document getNextPage(Document doc) throws IOException {
if (doc.select("li.next.hidden").size() != 0) {
// Last page
if (doc.select("li.next > a").size() == 0) {
throw new IOException("No more pages");
}
Elements els = doc.select("li.next > a");