涩图模块:匹配正则
This commit is contained in:
parent
5d05f279e8
commit
d5da784033
@ -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() {
|
||||
|
@ -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");
|
||||
|
Loading…
Reference in New Issue
Block a user