Update ImagebamRipper.java

This commit is contained in:
Kevin Jiang 2018-05-12 17:58:27 -04:00 committed by GitHub
parent 1c38a86d3d
commit 96bf2ad3a7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -146,7 +146,7 @@ public class ImagebamRipper extends AbstractHTMLRipper {
for (Element metaTag: metaTags) {
//the direct link to the image seems to always be linked in the <meta> part of the html.
if(metaTag.attr("property").equals("og:image")) {
if (metaTag.attr("property").equals("og:image")) {
imgsrc = metaTag.attr("content");
logger.info("Found URL " + imgsrc);
break;//only one (useful) image possible for an "image page".
@ -171,4 +171,4 @@ public class ImagebamRipper extends AbstractHTMLRipper {
}
}
}
}
}