1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-26 23:34:53 +02:00

Fix e-hentai regex

This commit is contained in:
cyian-1756
2018-12-28 12:10:55 -05:00
parent c44525a266
commit 504b2407b8

View File

@@ -81,7 +81,7 @@ public class EHentaiRipper extends AbstractHTMLRipper {
Pattern p; Pattern p;
Matcher m; Matcher m;
p = Pattern.compile("^https?://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()); m = p.matcher(url.toExternalForm());
if (m.matches()) { if (m.matches()) {
return m.group(1) + "-" + m.group(2); return m.group(1) + "-" + m.group(2);