hbrowse ripper now get real GID

This commit is contained in:
cyian-1756 2017-10-17 14:06:15 -04:00
parent 56051bf1af
commit 7c6c2f394a

View File

@ -34,7 +34,7 @@ public class HbrowseRipper extends AbstractHTMLRipper {
@Override
public String getGID(URL url) throws MalformedURLException {
Pattern p = Pattern.compile("http://www.hbrowse.com/\\d+/([a-zA-Z0-9]*)");
Pattern p = Pattern.compile("http://www.hbrowse.com/(\\d+)/[a-zA-Z0-9]*");
Matcher m = p.matcher(url.toExternalForm());
if (m.matches()) {
return m.group(1);