Merge pull request #133 from cyian-1756/imgbox

Fixed imgbox ripper
This commit is contained in:
cyian-1756 2017-11-01 13:00:41 -04:00 committed by GitHub
commit 637e594a4a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -48,7 +48,7 @@ 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").replaceAll("thumbs.imgbox.com", "images.imgbox.com"); String image = thumb.attr("src").replaceAll("thumbs", "images");
image = image.replace("_b", "_o"); image = image.replace("_b", "_o");
imageURLs.add(image); imageURLs.add(image);
} }