Fixing ehentai regex for #41
This commit is contained in:
parent
afa9c96df2
commit
3d4155529d
@ -60,10 +60,10 @@ public class EHentaiRipper extends AlbumRipper {
|
|||||||
|
|
||||||
System.out.println(url);
|
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());
|
m = p.matcher(url.toExternalForm());
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
return m.group(1);
|
return m.group(1) + "-" + m.group(2);
|
||||||
}
|
}
|
||||||
|
|
||||||
throw new MalformedURLException(
|
throw new MalformedURLException(
|
||||||
|
Loading…
Reference in New Issue
Block a user