|
@@ -106,14 +106,14 @@ public class VideoDownloader {
|
|
|
String index = String.format("%s-%s-%s", platform, videoId, UUID.randomUUID());
|
|
|
String md5Hash = DigestUtils.md5Hex(index);
|
|
|
String fileName = String.format("%s.mp4", md5Hash);
|
|
|
- return String.join(File.separator, System.getProperty("user.dir"), fileName); // 返回文件路径和封面路径
|
|
|
+ return String.join(File.separator, "/Users/shimeng/Desktop/download", fileName); // 返回文件路径和封面路径
|
|
|
}
|
|
|
|
|
|
private static String generateCoverPath(String platform, String videoId) {
|
|
|
String index = String.format("%s-%s-%s", platform, videoId, UUID.randomUUID());
|
|
|
String md5Hash = DigestUtils.md5Hex(index);
|
|
|
String coverName = String.format("%s.png", md5Hash);
|
|
|
- return String.join(File.separator, System.getProperty("user.dir"), coverName); // 返回文件路径和封面路径
|
|
|
+ return String.join(File.separator, "/Users/shimeng/Desktop/download", coverName); // 返回文件路径和封面路径
|
|
|
}
|
|
|
|
|
|
}
|