Added regex for xchan

This commit is contained in:
cyian-1756 2017-11-14 13:39:38 -05:00
parent 4016f35ab4
commit 669a78434c

View File

@ -117,6 +117,12 @@ public class ChanRipper extends AbstractHTMLRipper {
if (m.matches()) {
return m.group(1);
}
// xchan
p = Pattern.compile("^.*\\.[a-z]{1,3}/board/[a-zA-Z0-9]+/thread/([0-9]+)/?.*$");
m = p.matcher(u);
if (m.matches()) {
return m.group(1);
}
}
throw new MalformedURLException(