Use SSL by default on Jav Archives

This commit is contained in:
0x1f595 2018-07-14 13:10:53 -06:00
parent 27530965c2
commit daae074713

View File

@ -57,7 +57,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper {
if (hrefs.isEmpty()) { if (hrefs.isEmpty()) {
throw new IOException("No more pages"); throw new IOException("No more pages");
} }
String nextUrl = "http://jabarchives.com" + hrefs.first().attr("href"); String nextUrl = "https://jabarchives.com" + hrefs.first().attr("href");
sleep(500); sleep(500);
return Http.url(nextUrl).get(); return Http.url(nextUrl).get();
} }
@ -66,7 +66,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper {
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("#contentMain img")) { for (Element el : doc.select("#contentMain img")) {
result.add("http://jabarchives.com" + el.attr("src").replace("thumb", "large")); result.add("https://jabarchives.com" + el.attr("src").replace("thumb", "large"));
} }
return result; return result;
} }