Get full-size imgur images when ripping reddit users

Closes #142
This commit is contained in:
4pr0n 2015-01-11 00:40:56 -08:00
parent 439722d2e4
commit 4598b0bd38

View File

@ -81,7 +81,7 @@ public class RipUtils {
.userAgent(AbstractRipper.USER_AGENT) .userAgent(AbstractRipper.USER_AGENT)
.get(); .get();
for (Element el : doc.select("meta")) { for (Element el : doc.select("meta")) {
if (el.attr("property").equals("og:image")) { if (el.attr("name").equals("twitter:image:src")) {
result.add(new URL(el.attr("content"))); result.add(new URL(el.attr("content")));
return result; return result;
} }