Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
cbab8a88ed
@ -69,7 +69,7 @@ public class ViewcomicRipper extends AbstractHTMLRipper {
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getURLsFromPage(Document doc) {
|
public List<String> getURLsFromPage(Document doc) {
|
||||||
List<String> result = new ArrayList<String>();
|
List<String> result = new ArrayList<String>();
|
||||||
for (Element el : doc.select("div.pinbin-copy > a > img")) {
|
for (Element el : doc.select("div.separator > a > img")) {
|
||||||
result.add(el.attr("src"));
|
result.add(el.attr("src"));
|
||||||
}
|
}
|
||||||
return result;
|
return result;
|
||||||
|
@ -6,5 +6,8 @@ import java.net.URL;
|
|||||||
import com.rarchives.ripme.ripper.rippers.ViewcomicRipper;
|
import com.rarchives.ripme.ripper.rippers.ViewcomicRipper;
|
||||||
|
|
||||||
public class ViewcomicRipperTest extends RippersTest {
|
public class ViewcomicRipperTest extends RippersTest {
|
||||||
// TODO add a test
|
public void testViewcomicRipper() throws IOException {
|
||||||
|
ViewcomicRipper ripper = new ViewcomicRipper(new URL("https://view-comic.com/batman-no-mans-land-vol-1/"));
|
||||||
|
testRipper(ripper);
|
||||||
|
}
|
||||||
}
|
}
|
Loading…
Reference in New Issue
Block a user