Support for motherless groups

Isue #8
This commit is contained in:
4pr0n 2014-07-20 01:04:28 -07:00
parent ae4949d07c
commit 29f210a468

View File

@ -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);
}