mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-26 15:24:51 +02:00
Removed some logging that was spamming the log with useless info
This commit is contained in:
@@ -213,7 +213,6 @@ public class DeviantartRipper extends AbstractJSONRipper {
|
|||||||
if (js.html().contains("requestid")) {
|
if (js.html().contains("requestid")) {
|
||||||
String json = js.html().replaceAll("window.__initial_body_data=", "").replaceAll("\\);", "")
|
String json = js.html().replaceAll("window.__initial_body_data=", "").replaceAll("\\);", "")
|
||||||
.replaceAll(";__wake\\(.+", "");
|
.replaceAll(";__wake\\(.+", "");
|
||||||
LOGGER.info("json: " + json);
|
|
||||||
JSONObject j = new JSONObject(json);
|
JSONObject j = new JSONObject(json);
|
||||||
return j;
|
return j;
|
||||||
}
|
}
|
||||||
@@ -253,7 +252,6 @@ public class DeviantartRipper extends AbstractJSONRipper {
|
|||||||
@Override
|
@Override
|
||||||
public List<String> getURLsFromJSON(JSONObject json) {
|
public List<String> getURLsFromJSON(JSONObject json) {
|
||||||
List<String> imageURLs = new ArrayList<>();
|
List<String> imageURLs = new ArrayList<>();
|
||||||
LOGGER.info(json);
|
|
||||||
JSONArray results = json.getJSONObject("content").getJSONArray("results");
|
JSONArray results = json.getJSONObject("content").getJSONArray("results");
|
||||||
for (int i = 0; i < results.length(); i++) {
|
for (int i = 0; i < results.length(); i++) {
|
||||||
Document doc = Jsoup.parseBodyFragment(results.getJSONObject(i).getString("html"));
|
Document doc = Jsoup.parseBodyFragment(results.getJSONObject(i).getString("html"));
|
||||||
|
Reference in New Issue
Block a user