下载支持代理
This commit is contained in:
@@ -33,7 +33,9 @@ public class GetSeTu extends Model {
|
||||
String ret = HttpTools.get("https://api.lolicon.app/setu/v2?r18=2");
|
||||
JSONObject json = JSONObject.parseObject(ret);
|
||||
HttpTools.download(json.getJSONArray("data").getJSONObject(0).getJSONObject("urls").getString("original"),
|
||||
System.currentTimeMillis()+"_setu.jpg", new DownloadInterface() {
|
||||
System.currentTimeMillis()+"_setu.jpg",
|
||||
true
|
||||
, new DownloadInterface() {
|
||||
@Override
|
||||
public void onDownload(File file) {
|
||||
super.onDownload(file);
|
||||
|
||||
Reference in New Issue
Block a user