From 29f210a46867cb7b85c6895bb46d28949df69a50 Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Sun, 20 Jul 2014 01:04:28 -0700 Subject: [PATCH] Support for motherless groups Isue #8 --- .../com/rarchives/ripme/ripper/rippers/MotherlessRipper.java | 5 +++++ 1 file changed, 5 insertions(+) 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 17dcc15b..f98bfd17 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/MotherlessRipper.java @@ -73,6 +73,11 @@ public class MotherlessRipper extends AlbumRipper { if (m.matches()) { return m.group(m.groupCount()); } + p = Pattern.compile("^https?://(www\\.)?motherless\\.com/g[iv]/([a-zA-Z0-9%\\-_]+)$"); + m = p.matcher(url.toExternalForm()); + if (m.matches()) { + return m.group(m.groupCount()); + } throw new MalformedURLException("Expected URL format: http://motherless.com/GIXXXXXXX, got: " + url); }