修复查动画无法保存图片的问题

This commit is contained in:
2022-04-08 17:33:17 +08:00
parent 7fa6c22ef8
commit 3e709799d2
3 changed files with 8 additions and 36 deletions

View File

@@ -83,21 +83,9 @@ public class Bangumi extends Model {
return;
}
for (String img : imgs) {
HttpTools.download(img,key+".png", new DownloadInterface() {
@Override
public void onDownload(File file) {
super.onDownload(file);
files.add(file);
send(imgs.size(),qq, text);
}
@Override
public void onError(Exception e) {
super.onError(e);
index++;
send(imgs.size(),qq, text);
}
});
File file = HttpTools.syncDownload(img.replace("http://","https://"), key + ".jpg");
files.add(file);
send(imgs.size(),qq, text);
}
}