From 265e1310453d5767dca3bff6e7b7db8a33ed068f Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sun, 8 Jul 2018 06:17:51 -0400 Subject: [PATCH 1/2] Fixed ManganeloRipper --- .../com/rarchives/ripme/ripper/rippers/ManganeloRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ManganeloRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ManganeloRipper.java index cabb4188..79e670d1 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ManganeloRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ManganeloRipper.java @@ -99,7 +99,7 @@ public class ManganeloRipper extends AbstractHTMLRipper { Collections.reverse(urlsToGrab); for (String url : urlsToGrab) { - result.addAll(getURLsFromChap(url)); + result.addAll(getURLsFromChap("https:" + url)); } } else if (url.toExternalForm().contains("/chapter/")) { result.addAll(getURLsFromChap(doc)); From 42c5a7be3fd48a738ccb060f3a271b975fe7cae3 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Sun, 8 Jul 2018 06:18:23 -0400 Subject: [PATCH 2/2] Changed ManganeloRipper unittest url to a smaller album, added test got getGid --- .../ripme/tst/ripper/rippers/ManganeloRipperTest.java | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ManganeloRipperTest.java b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ManganeloRipperTest.java index ca355a2c..7eb1b8e9 100644 --- a/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ManganeloRipperTest.java +++ b/src/test/java/com/rarchives/ripme/tst/ripper/rippers/ManganeloRipperTest.java @@ -7,7 +7,13 @@ import com.rarchives.ripme.ripper.rippers.ManganeloRipper; public class ManganeloRipperTest extends RippersTest { public void testRip() throws IOException { - ManganeloRipper ripper = new ManganeloRipper(new URL("http://manganelo.com/manga/black_clover")); + ManganeloRipper ripper = new ManganeloRipper(new URL("https://manganelo.com/manga/demonic_housekeeper")); testRipper(ripper); } + + public void testGetGID() throws IOException { + URL url = new URL("https://manganelo.com/manga/demonic_housekeeper"); + ManganeloRipper ripper = new ManganeloRipper(url); + assertEquals("demonic_housekeeper", ripper.getGID(url)); + } }