1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-26 15:24:51 +02:00

Merge pull request #1697 from Ruthalas/master

Resolve xlecx error #1696
This commit is contained in:
cyian-1756
2020-07-29 21:48:43 +00:00
committed by GitHub
2 changed files with 4 additions and 4 deletions

View File

@@ -56,7 +56,7 @@ public class XcartxRipper extends AbstractHTMLRipper {
for (Element image : imageElements) {
String imageUrl = image.attr("data-src");
imageURLs.add(getDomain() + imageUrl);
imageURLs.add("https://" + getDomain() + imageUrl);
}
return imageURLs;
}

View File

@@ -8,7 +8,7 @@ import java.util.regex.Pattern;
public class XlecxRipper extends XcartxRipper {
private Pattern p = Pattern.compile("^https?://xlecx.com/([a-zA-Z0-9_\\-]+).html");
private Pattern p = Pattern.compile("^https?://xlecx.org/([a-zA-Z0-9_\\-]+).html");
public XlecxRipper(URL url) throws IOException {
super(url);
@@ -21,7 +21,7 @@ public class XlecxRipper extends XcartxRipper {
@Override
public String getDomain() {
return "xlecx.com";
return "xlecx.org";
}
@Override
@@ -30,7 +30,7 @@ public class XlecxRipper extends XcartxRipper {
if (m.matches()) {
return m.group(1);
}
throw new MalformedURLException("Expected URL format: http://xlecx.com/comic, got: " + url);
throw new MalformedURLException("Expected URL format: http://xlecx.org/comic, got: " + url);
}
}