From cba82ccbe662eecd8c30b7caa5c078e8ea91a6d9 Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 26 Oct 2017 05:32:44 -0400 Subject: [PATCH] Fixed imgbox ripper --- .../com/rarchives/ripme/ripper/rippers/ImgboxRipper.java | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ImgboxRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ImgboxRipper.java index 846b4c80..be176e24 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ImgboxRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ImgboxRipper.java @@ -48,9 +48,8 @@ public class ImgboxRipper extends AbstractHTMLRipper { public List getURLsFromPage(Document doc) { List imageURLs = new ArrayList<>(); for (Element thumb : doc.select("div.boxed-content > a > img")) { - String image = thumb.attr("src") - .replaceAll("[-a-zA-Z0-9.]+s.imgbox.com", - "i.imgbox.com"); + String image = thumb.attr("src").replaceAll("thumbs.imgbox.com", "images.imgbox.com"); + image = image.replace("_b", "_o"); imageURLs.add(image); } return imageURLs;