Fix pagination on Cheeby ripper

Closes #153
This commit is contained in:
4pr0n 2015-01-10 15:41:41 -08:00
parent e6f41d5047
commit 2e01d63841

View File

@ -56,8 +56,8 @@ public class CheebyRipper extends AbstractHTMLRipper {
@Override
public Document getNextPage(Document doc) throws IOException {
sleep(500);
offset += 10;
String url = this.url + "?limit=10&offset=" + offset;
offset += 1;
String url = this.url + "?p=" + offset;
Document nextDoc = Http.url(url).get();
if (nextDoc.select("div.i a img").size() == 0) {
throw new IOException("No more images to fetch");