From 5763c673ec88160679392886eb57ca0c2f076b4b Mon Sep 17 00:00:00 2001 From: cyian-1756 Date: Thu, 26 Apr 2018 15:46:50 -0400 Subject: [PATCH] TsuminoRipper now adds .png to filenames; Removed unneeded debug statment --- .../com/rarchives/ripme/ripper/rippers/TsuminoRipper.java | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/main/java/com/rarchives/ripme/ripper/rippers/TsuminoRipper.java b/src/main/java/com/rarchives/ripme/ripper/rippers/TsuminoRipper.java index 9ca91e45..6030c9f0 100644 --- a/src/main/java/com/rarchives/ripme/ripper/rippers/TsuminoRipper.java +++ b/src/main/java/com/rarchives/ripme/ripper/rippers/TsuminoRipper.java @@ -17,7 +17,6 @@ import org.json.JSONObject; import org.jsoup.Connection; import org.jsoup.Jsoup; import org.jsoup.nodes.Document; -import org.jsoup.nodes.Element; import com.rarchives.ripme.ripper.AbstractHTMLRipper; @@ -35,13 +34,10 @@ public class TsuminoRipper extends AbstractHTMLRipper { try { // This sessionId will expire and need to be replaced cookies.put("ASP.NET_SessionId","c4rbzccf0dvy3e0cloolmlkq"); - logger.info(cookies); Document doc = Jsoup.connect(postURL).data("q", getAlbumID()).userAgent(USER_AGENT).cookies(cookies).referrer("http://www.tsumino.com/Read/View/" + getAlbumID()).post(); String jsonInfo = doc.html().replaceAll("","").replaceAll("", "").replaceAll("", "").replaceAll("", "") .replaceAll("", "").replaceAll("\n", ""); - logger.info(jsonInfo); JSONObject json = new JSONObject(jsonInfo); - logger.info(json.getJSONArray("reader_page_urls")); return json.getJSONArray("reader_page_urls"); } catch (IOException e) { logger.info(e); @@ -85,7 +81,6 @@ public class TsuminoRipper extends AbstractHTMLRipper { public Document getFirstPage() throws IOException { Connection.Response resp = Http.url(url).response(); cookies.putAll(resp.cookies()); - logger.info(resp.parse()); return resp.parse(); } @@ -103,6 +98,6 @@ public class TsuminoRipper extends AbstractHTMLRipper { @Override public void downloadURL(URL url, int index) { sleep(1000); - addURLToDownload(url, getPrefix(index)); + addURLToDownload(url, getPrefix(index), "", null, null, null, "png"); } }