removed the unused g subdomain from the ehentai ripper (#453)
This commit is contained in:
parent
334a124b9f
commit
06e88efedf
@ -56,7 +56,7 @@ public class EHentaiRipper extends AbstractHTMLRipper {
|
||||
|
||||
@Override
|
||||
public String getDomain() {
|
||||
return "g.e-hentai.org";
|
||||
return "e-hentai.org";
|
||||
}
|
||||
|
||||
public String getAlbumTitle(URL url) throws MalformedURLException {
|
||||
@ -79,15 +79,15 @@ public class EHentaiRipper extends AbstractHTMLRipper {
|
||||
Pattern p;
|
||||
Matcher m;
|
||||
|
||||
p = Pattern.compile("^.*g\\.e-hentai\\.org/g/([0-9]+)/([a-fA-F0-9]+)/$");
|
||||
p = Pattern.compile("^https?://e-hentai\\.org/g/([0-9]+)/([a-fA-F0-9]+)/$");
|
||||
m = p.matcher(url.toExternalForm());
|
||||
if (m.matches()) {
|
||||
return m.group(1) + "-" + m.group(2);
|
||||
}
|
||||
|
||||
throw new MalformedURLException(
|
||||
"Expected g.e-hentai.org gallery format: "
|
||||
+ "http://g.e-hentai.org/g/####/####/"
|
||||
"Expected e-hentai.org gallery format: "
|
||||
+ "http://e-hentai.org/g/####/####/"
|
||||
+ " Got: " + url);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user