Fixed imgur ripper to grab full large albums
This commit is contained in:
parent
68ffc7f760
commit
df3b6b6000
@ -158,7 +158,14 @@ public class ImgurRipper extends AbstractRipper {
|
|||||||
// TODO If album is empty, use this to check for cached images:
|
// TODO If album is empty, use this to check for cached images:
|
||||||
// http://i.rarchives.com/search.cgi?cache=http://imgur.com/a/albumID
|
// http://i.rarchives.com/search.cgi?cache=http://imgur.com/a/albumID
|
||||||
// At the least, get the thumbnails.
|
// 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
|
// Fall back to parsing HTML elements
|
||||||
// NOTE: This does not always get the highest-resolution images!
|
// NOTE: This does not always get the highest-resolution images!
|
||||||
|
Loading…
Reference in New Issue
Block a user