From 4598b0bd381cbe05de0e608b1c8c8c48c5e230a9 Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Sun, 11 Jan 2015 00:40:56 -0800 Subject: [PATCH] Get full-size imgur images when ripping reddit users Closes #142 --- src/main/java/com/rarchives/ripme/utils/RipUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/utils/RipUtils.java b/src/main/java/com/rarchives/ripme/utils/RipUtils.java index 062404bf..68d4616d 100644 --- a/src/main/java/com/rarchives/ripme/utils/RipUtils.java +++ b/src/main/java/com/rarchives/ripme/utils/RipUtils.java @@ -81,7 +81,7 @@ public class RipUtils { .userAgent(AbstractRipper.USER_AGENT) .get(); 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"))); return result; }