getGID seems to be throwing errors on valid gallery urls. closes #39

This commit is contained in:
Christopher Douglas 2014-05-11 21:57:07 -05:00
parent 14c2d8a317
commit 3aa6afee09

View File

@ -47,7 +47,7 @@ public class MotherlessRipper extends AlbumRipper {
@Override @Override
public String getGID(URL url) throws MalformedURLException { 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()); Matcher m = p.matcher(url.toExternalForm());
System.err.println(url.toExternalForm()); System.err.println(url.toExternalForm());
if (!m.matches()) { if (!m.matches()) {