Fixed regression with xhamster ripper that causes it to not accept links to the english version of xhamster.com

This commit is contained in:
cyian-1756 2018-06-14 22:23:27 -04:00
parent e6f3067015
commit d7f39d9f9b

View File

@ -62,7 +62,7 @@ public class XhamsterRipper extends AbstractHTMLRipper {
@Override
public boolean canRip(URL url) {
Pattern p = Pattern.compile("^https?://[\\w\\w]*\\.xhamster\\.com/photos/gallery/.*?(\\d+)$");
Pattern p = Pattern.compile("^https?://([\\w\\w]*\\.)?xhamster\\.com/photos/gallery/.*?(\\d+)$");
Matcher m = p.matcher(url.toExternalForm());
return m.matches();
}