Fix #401: Imgbox: correctly convert thumbnail urls to full-size urls.

This commit is contained in:
MetaPrime 2016-12-27 23:08:16 -06:00
parent 0057e4542f
commit 2ea2bee74a

View File

@ -49,7 +49,7 @@ public class ImgboxRipper extends AbstractHTMLRipper {
List<String> imageURLs = new ArrayList<String>(); List<String> imageURLs = new ArrayList<String>();
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("[a-zA-Z0-9.]+s.imgbox.com", .replaceAll("[-a-zA-Z0-9.]+s.imgbox.com",
"i.imgbox.com"); "i.imgbox.com");
imageURLs.add(image); imageURLs.add(image);
} }