From e38c495aa730e673fcdcf43ffb6eb8025927ae2d Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Tue, 22 May 2018 11:28:44 -0400 Subject: [PATCH] myhentaicomics ripper now requests proper url when downloading images --- .../rarchives/ripme/ripper/rippers/MyhentaicomicsRipper.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/MyhentaicomicsRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/MyhentaicomicsRipper.java index 60c90ae1..453826a3 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/MyhentaicomicsRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/MyhentaicomicsRipper.java @@ -99,7 +99,7 @@ public class MyhentaicomicsRipper extends AbstractHTMLRipper { Pattern p = Pattern.compile("/index.php/[a-zA-Z0-9_-]*\\?page=\\d"); Matcher m = p.matcher(nextPage); if (m.matches()) { - nextUrl = "http://myhentaicomics.com" + m.group(0); + nextUrl = "https://myhentaicomics.com" + m.group(0); } if (nextUrl.equals("")) { throw new IOException("No more pages"); @@ -120,7 +120,7 @@ public class MyhentaicomicsRipper extends AbstractHTMLRipper { if (!imageSource.startsWith("http://") && !imageSource.startsWith("https://")) { // We replace thumbs with resizes so we can the full sized images imageSource = imageSource.replace("thumbs", "resizes"); - result.add("http://myhentaicomics.com/" + imageSource); + result.add("https://myhentaicomics.com" + imageSource); } } return result;