From df3b6b60008d36d88bf9fe0e4159aa467efe3c6e Mon Sep 17 00:00:00 2001 From: 4pr0n Date: Fri, 4 Apr 2014 00:55:04 -0700 Subject: [PATCH] Fixed imgur ripper to grab full large albums --- .../com/rarchives/ripme/ripper/rippers/ImgurRipper.java | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/ImgurRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/ImgurRipper.java index 9e5f5db8..fe2fcce1 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/ImgurRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/ImgurRipper.java @@ -158,7 +158,14 @@ public class ImgurRipper extends AbstractRipper { // TODO If album is empty, use this to check for cached images: // http://i.rarchives.com/search.cgi?cache=http://imgur.com/a/albumID // At the least, get the thumbnails. - logger.info("[!] Falling back to elemental retrieval method"); + + logger.info("[!] Falling back to /noscript method"); + + String newUrl = url.toExternalForm() + "/noscript"; + logger.info(" Retrieving " + newUrl); + doc = Jsoup.connect(newUrl) + .userAgent(USER_AGENT) + .get(); // Fall back to parsing HTML elements // NOTE: This does not always get the highest-resolution images!