mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-16 19:04:05 +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
|
// Deobfustace the json data
|
||||||
String rawJson = deobfuscateJSON(page.select("script#ractive-public").html()
|
String rawJson = deobfuscateJSON(page.select("script#ractive-public").html()
|
||||||
.replaceAll(">", ">").replaceAll("<", "<").replace("&", "&"));
|
.replaceAll(">", ">").replaceAll("<", "<").replace("&", "&"));
|
||||||
LOGGER.info(rawJson);
|
|
||||||
JSONObject json = new JSONObject(rawJson);
|
JSONObject json = new JSONObject(rawJson);
|
||||||
try {
|
try {
|
||||||
for (int i = 0; i != json.getJSONArray("pictures").length(); i++) {
|
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);
|
addURLToDownload(imageUrl, getPrefixShort(x), getSubdir(page.select("title").text()), this.url.toExternalForm(), cookies, "", null, true);
|
||||||
// X is our page index
|
// X is our page index
|
||||||
x++;
|
x++;
|
||||||
|
if (isThisATest()) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
return imageURLs;
|
return imageURLs;
|
||||||
} catch (MalformedURLException e) {
|
} catch (MalformedURLException e) {
|
||||||
|
Reference in New Issue
Block a user