added ASAP ripping

This commit is contained in:
cyian-1756 2017-04-25 07:10:40 -04:00
parent a953cc39b0
commit 1849fdba2d

View File

@ -74,7 +74,14 @@ public class JagodibujaRipper extends AbstractHTMLRipper {
Document comicPage = Http.url(comicPageUrl.attr("href")).get(); Document comicPage = Http.url(comicPageUrl.attr("href")).get();
Element elem = comicPage.select("span.full-size-link > a").first(); Element elem = comicPage.select("span.full-size-link > a").first();
logger.info("Got link " + elem.attr("href")); logger.info("Got link " + elem.attr("href"));
result.add(elem.attr("href")); try {
addURLToDownload(new URL(elem.attr("href")), "");
}
catch(MalformedURLException e) {
logger.warn("Malformed URL");
e.printStackTrace();
}
// result.add(elem.attr("href"));
} }
catch(IOException e) { catch(IOException e) {
logger.info("Error loading " + comicPageUrl); logger.info("Error loading " + comicPageUrl);