我正在设置Jtable,其中包括通过vget
api下载youtube视频并获取视频信息的进度
显示在类似于IDM
public void function(String url) {
this.url = url;
try {
File downloadDir = new File("Downloads");
downloadDir.mkdir();
this.path = downloadDir.getAbsolutePath();
VGet vGet = new VGet(new URL(url), new File(path));
System.out.println("\n[*] Please wait ....\n" +
"[*] Downloading files at path : "
+ this.path + "\n");
vGet.download();
// List the Files :
try {
fileList(downloadDir);
} catch (Exception e) {
e.printStackTrace();
}
} catch (MalformedURLException mue) {
mue.printStackTrace();
}
}