mirror of
https://github.com/RipMeApp/ripme.git
synced 2025-08-27 15:49:50 +02:00
Merge pull request #1002 from cyian-1756/tsuminoFixes
TsuminoRipper can download albums again
This commit is contained in:
@@ -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);
|
||||||
|
Reference in New Issue
Block a user