Merge pull request #930 from cyian-1756/JagodibujaRipperTest
Added Jagodibuja ripper test
This commit is contained in:
commit
6ac5f27196
@ -50,6 +50,12 @@ public class JagodibujaRipper extends AbstractHTMLRipper {
|
||||
public List<String> getURLsFromPage(Document doc) {
|
||||
List<String> result = new ArrayList<>();
|
||||
for (Element comicPageUrl : doc.select("div.gallery-icon > a")) {
|
||||
// Check if the ripper has been stopped
|
||||
try {
|
||||
stopCheck();
|
||||
} catch (IOException e) {
|
||||
return result;
|
||||
}
|
||||
try {
|
||||
sleep(500);
|
||||
Document comicPage = Http.url(comicPageUrl.attr("href")).get();
|
||||
|
@ -6,5 +6,9 @@ import java.net.URL;
|
||||
import com.rarchives.ripme.ripper.rippers.JagodibujaRipper;
|
||||
|
||||
public class JagodibujaRipperTest extends RippersTest {
|
||||
// TODO add a test
|
||||
public void testJagodibujaRipper() throws IOException {
|
||||
// a photo set
|
||||
JagodibujaRipper ripper = new JagodibujaRipper(new URL("http://www.jagodibuja.com/comic-in-me/"));
|
||||
testRipper(ripper);
|
||||
}
|
||||
}
|
Loading…
Reference in New Issue
Block a user