Fixing ehentai regex for #41

This commit is contained in:
4pr0n 2014-05-13 22:56:02 -07:00
parent afa9c96df2
commit 3d4155529d

View File

@ -60,10 +60,10 @@ public class EHentaiRipper extends AlbumRipper {
System.out.println(url);
p = Pattern.compile("^.*g\\.e-hentai\\.org/g/[0-9]+/[a-fA-F0-9]+)/$");
p = Pattern.compile("^.*g\\.e-hentai\\.org/g/([0-9]+)/([a-fA-F0-9]+)/$");
m = p.matcher(url.toExternalForm());
if (m.matches()) {
return m.group(1);
return m.group(1) + "-" + m.group(2);
}
throw new MalformedURLException(