涩图模块:匹配正则

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")) {
builder.append(tags).append("");
}
System.out.println("json = " + json);
System.out.println("url = " + item.getJSONObject("urls").getString("original"));
HttpTools.download(item.getJSONObject("urls").getString("original"),
HttpTools.download(item.getJSONObject("urls").getString("regular"),
System.currentTimeMillis() + "_setu.jpg",
true
, new DownloadInterface() {

View File

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