feat:适配油管音频

1. 适配油管音频
2. 提取部分内联函数
This commit is contained in:
zhiyu1998 2024-10-21 19:51:17 +08:00
parent 0bbaa46804
commit cb3ebc32cd

View File

@ -1949,6 +1949,7 @@ export class tools extends plugin {
const path = this.getCurDownloadPath(e);
await checkAndRemoveFile(path + "/temp.mp4")
await checkAndRemoveFile(path + "/temp.mp3")
await checkAndRemoveFile(path + "/thumbnail.png")
await ytDlpGetThumbnail(path, url, isOversea, this.myProxy)
const title = ytDlpGetTilt(url, isOversea, this.myProxy).toString().replace(/\n/g, '');