Merge remote-tracking branch 'upstream/master'
This commit is contained in:
commit
cbab8a88ed
@ -69,7 +69,7 @@ public class ViewcomicRipper extends AbstractHTMLRipper {
|
||||
@Override
|
||||
public List<String> getURLsFromPage(Document doc) {
|
||||
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"));
|
||||
}
|
||||
return result;
|
||||
|
@ -6,5 +6,8 @@ import java.net.URL;
|
||||
import com.rarchives.ripme.ripper.rippers.ViewcomicRipper;
|
||||
|
||||
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