|
@@ -89,8 +89,8 @@ public class FileUtils {
|
|
|
return filePath;
|
|
|
}
|
|
|
|
|
|
- public static void download(String fileUrl, String filePath, boolean useUa, boolean useProxy) throws Exception {
|
|
|
- downloadForGZH(fileUrl, filePath, false, false, null);
|
|
|
+ public static void download(String fileUrl, String filePath, boolean useUa) throws Exception {
|
|
|
+ downloadForGZH(fileUrl, filePath, useUa, null);
|
|
|
}
|
|
|
|
|
|
public static void download(String fileUrl, String filePath, boolean useUa, boolean useProxy, Map<String, String> proxyInfo) throws Exception {
|
|
@@ -193,7 +193,7 @@ public class FileUtils {
|
|
|
|
|
|
public static void main(String[] args) throws Exception {
|
|
|
// try {
|
|
|
- download("https://mpvideo.qpic.cn/0b2eamabmaaaiaakmkq3jfsvaa6dcybqafqa.f10002.mp4?dis_k=af0809430b6148733c161cb94368bd30&dis_t=1696833857&play_scene=10120&auth_info=LdSvh8hZbHlJiPWF6A9dSW1HMR9TdjtFUl17LX1YNxkLblZiChITAzhoFzJxNFFq&auth_key=5fca6f1024c9f40e9f6ad50aad0e437e&vid=wxv_3132660909191184387&format_id=10002&support_redirect=0&mmversion=false", "/Users/dingyunpeng/Downloads/" + System.currentTimeMillis(), true, true);
|
|
|
+ download("https://mpvideo.qpic.cn/0b2eamabmaaaiaakmkq3jfsvaa6dcybqafqa.f10002.mp4?dis_k=af0809430b6148733c161cb94368bd30&dis_t=1696833857&play_scene=10120&auth_info=LdSvh8hZbHlJiPWF6A9dSW1HMR9TdjtFUl17LX1YNxkLblZiChITAzhoFzJxNFFq&auth_key=5fca6f1024c9f40e9f6ad50aad0e437e&vid=wxv_3132660909191184387&format_id=10002&support_redirect=0&mmversion=false", "/Users/dingyunpeng/Downloads/" + System.currentTimeMillis(), true);
|
|
|
//
|
|
|
// } catch (Exception e) {
|
|
|
// e.printStackTrace();
|