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