From daae0747137726cb68a8ff948fb6f30cb1326198 Mon Sep 17 00:00:00 2001 From: 0x1f595 <0x1f595@users.noreply.github.com> Date: Sat, 14 Jul 2018 13:10:53 -0600 Subject: [PATCH] Use SSL by default on Jav Archives --- .../com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java index eeba986a..1ad0b2f7 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java @@ -57,7 +57,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper { 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(); } @@ -66,7 +66,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper { public List getURLsFromPage(Document doc) { List result = new ArrayList(); 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; }