1
0
mirror of https://github.com/RipMeApp/ripme.git synced 2025-08-28 16:19:58 +02:00

TsuminoRipper can download albums again

This commit is contained in:
cyian-1756
2018-10-12 01:30:58 -04:00
parent 6787ee6401
commit 59ddde2c2e

View File

@@ -47,7 +47,7 @@ public class TsuminoRipper extends AbstractHTMLRipper {
try { try {
// This sessionId will expire and need to be replaced // This sessionId will expire and need to be replaced
cookies.put("ASP.NET_SessionId","c4rbzccf0dvy3e0cloolmlkq"); cookies.put("ASP.NET_SessionId","c4rbzccf0dvy3e0cloolmlkq");
Document doc = Jsoup.connect(postURL).data("q", getAlbumID()).userAgent(USER_AGENT).cookies(cookies).referrer("http://www.tsumino.com/Read/View/" + getAlbumID()).post(); Document doc = Jsoup.connect(postURL).data("q", getAlbumID()).userAgent(USER_AGENT).cookies(cookies).referrer("http://www.tsumino.com/Read/View/" + getAlbumID()).get();
String jsonInfo = doc.html().replaceAll("<html>","").replaceAll("<head></head>", "").replaceAll("<body>", "").replaceAll("</body>", "") String jsonInfo = doc.html().replaceAll("<html>","").replaceAll("<head></head>", "").replaceAll("<body>", "").replaceAll("</body>", "")
.replaceAll("</html>", "").replaceAll("\n", ""); .replaceAll("</html>", "").replaceAll("\n", "");
JSONObject json = new JSONObject(jsonInfo); JSONObject json = new JSONObject(jsonInfo);