JabArchivesRipper now allows for www. to appear in url
This commit is contained in:
parent
15c4b245fb
commit
f38bb7ba9b
@ -33,7 +33,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public String getGID(URL url) throws MalformedURLException {
|
public String getGID(URL url) throws MalformedURLException {
|
||||||
Pattern p = Pattern.compile("^https?://jabarchives.com/main/view/([a-zA-Z0-9_]+).*$");
|
Pattern p = Pattern.compile("^https?://(:?www.)jabarchives.com/main/view/([a-zA-Z0-9_]+).*$");
|
||||||
Matcher m = p.matcher(url.toExternalForm());
|
Matcher m = p.matcher(url.toExternalForm());
|
||||||
if (m.matches()) {
|
if (m.matches()) {
|
||||||
// Return the text contained between () in the regex
|
// Return the text contained between () in the regex
|
||||||
|
Loading…
Reference in New Issue
Block a user