Skip to content

Commit

Permalink
Use SSL by default on Jav Archives
Browse files Browse the repository at this point in the history
  • Loading branch information
0x1f595 committed Jul 14, 2018
1 parent 2753096 commit daae074
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ public Document getNextPage(Document doc) throws IOException {
if (hrefs.isEmpty()) {
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);
return Http.url(nextUrl).get();
}
Expand All @@ -66,7 +66,7 @@ public Document getNextPage(Document doc) throws IOException {
public List<String> getURLsFromPage(Document doc) {
List<String> result = new ArrayList<String>();
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;
}
Expand Down

0 comments on commit daae074

Please sign in to comment.