Merge pull request #932 from cyian-1756/ViewcomicRipperTest

Fixed Viewcomic ripper
This commit is contained in:
cyian-1756 2018-09-12 08:25:04 -04:00 committed by GitHub
commit cec89d4020
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 2 deletions

View File

@ -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;

View File

@ -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);
}
}