🐞 fix: 修复部分用户使用 TikTok 解析问题

This commit is contained in:
zhiyu1998 2024-07-12 13:50:58 +08:00
parent 3803bf4474
commit d2c42c1528

View File

@ -349,6 +349,7 @@ export class tools extends plugin {
const cleanedTiktokUrl = parsedUrl.toString();
// 下载逻辑
const path = this.getCurDownloadPath(e);
await checkAndRemoveFile(path + "/temp.mp4")
const title = execSync(`yt-dlp --get-title ${ cleanedTiktokUrl } ${ isOversea ? "" : `--proxy ${ this.myProxy }` }`)
e.reply(`识别TikTok视频下载中请耐心等待 \n${ title }`);
await this.tiktokHelper(path, cleanedTiktokUrl, isOversea);