From f38bb7ba9b502f9914ac898e59de937b18aca7dd Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Fri, 3 Aug 2018 20:59:50 -0400 Subject: [PATCH] JabArchivesRipper now allows for www. to appear in url --- .../com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java index 1ad0b2f7..75153868 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/JabArchivesRipper.java @@ -33,7 +33,7 @@ public class JabArchivesRipper extends AbstractHTMLRipper { @Override 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()); if (m.matches()) { // Return the text contained between () in the regex