Fix #401: Imgbox: correctly convert thumbnail urls to full-size urls.
This commit is contained in:
parent
0057e4542f
commit
2ea2bee74a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user