1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-20 04:31:55 +02:00

Merge pull request #127 from cyian-1756/imgbox

Fixed imgbox ripper
This commit is contained in:
cyian-1756
2017-10-26 10:32:16 -04:00
committed by GitHub

View File

@@ -48,9 +48,8 @@ public class ImgboxRipper extends AbstractHTMLRipper {
public List<String> getURLsFromPage(Document doc) { public List<String> getURLsFromPage(Document doc) {
List<String> imageURLs = new ArrayList<>(); List<String> imageURLs = new ArrayList<>();
for (Element thumb : doc.select("div.boxed-content > a > img")) { for (Element thumb : doc.select("div.boxed-content > a > img")) {
String image = thumb.attr("src") String image = thumb.attr("src").replaceAll("thumbs.imgbox.com", "images.imgbox.com");
.replaceAll("[-a-zA-Z0-9.]+s.imgbox.com", image = image.replace("_b", "_o");
"i.imgbox.com");
imageURLs.add(image); imageURLs.add(image);
} }
return imageURLs; return imageURLs;