From 3aa6afee0902bc893475b7ebcc5f8ea6ade766e0 Mon Sep 17 00:00:00 2001 From: Christopher Douglas Date: Sun, 11 May 2014 21:57:07 -0500 Subject: [PATCH] getGID seems to be throwing errors on valid gallery urls. closes #39 --- .../com/rarchives/ripme/ripper/rippers/MotherlessRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java index 52bfb33f..df6a72fe 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java @@ -47,7 +47,7 @@ public class MotherlessRipper extends AlbumRipper { @Override public String getGID(URL url) throws MalformedURLException { - Pattern p = Pattern.compile("^https?://(www\\.)?motherless\\.com/G([MVI][A-F0-9]{6,8}).*$"); + Pattern p = Pattern.compile("^https?://(www\\.)?motherless\\.com/G([MVI]?[A-F0-9]{6,8}).*$"); Matcher m = p.matcher(url.toExternalForm()); System.err.println(url.toExternalForm()); if (!m.matches()) {