From 709ae1b13a001203846f2e6b3ef80ea876ea3f40 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 13 Jul 2017 10:58:37 -0400 Subject: [PATCH] switched up regex --- .../com/rarchives/ripme/ripper/rippers/EightmusesRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java index 7a8af377..21a260cb 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/EightmusesRipper.java @@ -85,7 +85,7 @@ public class EightmusesRipper extends AbstractHTMLRipper { // get the first image link on the page and check if the last char in it is a number // if it is a number then we're ripping a comic if not it's a subalbum String firstImageLink = page.select(".page-gallery > div > div > div.gallery > a.t-hover").first().attr("href"); - Pattern p = Pattern.compile("/comix/[a-zA-Z0-9\\-_/]*/\\d+"); + Pattern p = Pattern.compile("/comix/([a-zA-Z0-9\\-_/]*/)?\\d+"); Matcher m = p.matcher(firstImageLink); if (!m.matches()) { logger.info("Ripping subalbums");