hentai.cafe now supports urls with unicode

This commit is contained in:
cyian-1756 2017-10-16 16:30:48 -04:00
parent 2f30df0d5e
commit d4cb2b6ac4

View File

@ -34,7 +34,7 @@ public class HentaiCafeRipper extends AbstractHTMLRipper {
@Override
public String getGID(URL url) throws MalformedURLException {
Pattern p = Pattern.compile("https?://hentai\\.cafe/([a-zA-Z1-9_-]*)/?$");
Pattern p = Pattern.compile("https?://hentai\\.cafe/([a-zA-Z1-9_\\-%]*)/?$");
Matcher m = p.matcher(url.toExternalForm());
if (m.matches()) {
return m.group(1);