涩图模块:匹配正则

This commit is contained in:
Yutousama 2022-04-17 21:57:52 +08:00
parent 5d05f279e8
commit d5da784033
2 changed files with 2 additions and 4 deletions

View File

@ -84,9 +84,7 @@ public class GetSeTu extends Model {
for (Object tags : item.getJSONArray("tags")) { for (Object tags : item.getJSONArray("tags")) {
builder.append(tags).append(""); builder.append(tags).append("");
} }
System.out.println("json = " + json); HttpTools.download(item.getJSONObject("urls").getString("regular"),
System.out.println("url = " + item.getJSONObject("urls").getString("original"));
HttpTools.download(item.getJSONObject("urls").getString("original"),
System.currentTimeMillis() + "_setu.jpg", System.currentTimeMillis() + "_setu.jpg",
true true
, new DownloadInterface() { , new DownloadInterface() {

View File

@ -197,7 +197,7 @@ public class HttpTools {
} }
connection.addRequestProperty("User-Agent", getExtUa()); connection.addRequestProperty("User-Agent", getExtUa());
Log.i("获取到网络请求:"+((HttpsURLConnection)connection).getResponseCode()); // Log.i("获取到网络请求:"+((HttpsURLConnection)connection).getResponseCode());
InputStream inputStream = connection.getInputStream(); InputStream inputStream = connection.getInputStream();
jar = new File(downloadPath + saveName + "_tmp.tmp"); jar = new File(downloadPath + saveName + "_tmp.tmp");