mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-16 10:54:09 +02:00
Merge pull request #1275 from cyian-1756/log-spam-fixes
EightmusesRipper no longer spams log
This commit is contained in:
@@ -119,7 +119,6 @@ public class EightmusesRipper extends AbstractHTMLRipper {
|
||||
// Deobfustace the json data
|
||||
String rawJson = deobfuscateJSON(page.select("script#ractive-public").html()
|
||||
.replaceAll(">", ">").replaceAll("<", "<").replace("&", "&"));
|
||||
LOGGER.info(rawJson);
|
||||
JSONObject json = new JSONObject(rawJson);
|
||||
try {
|
||||
for (int i = 0; i != json.getJSONArray("pictures").length(); i++) {
|
||||
@@ -128,6 +127,9 @@ public class EightmusesRipper extends AbstractHTMLRipper {
|
||||
addURLToDownload(imageUrl, getPrefixShort(x), getSubdir(page.select("title").text()), this.url.toExternalForm(), cookies, "", null, true);
|
||||
// X is our page index
|
||||
x++;
|
||||
if (isThisATest()) {
|
||||
break;
|
||||
}
|
||||
}
|
||||
return imageURLs;
|
||||
} catch (MalformedURLException e) {
|
||||
|
Reference in New Issue
Block a user