feat:适配油管音频

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

View File

@ -1958,7 +1958,7 @@ export class tools extends plugin {
if (url.includes("music")) { if (url.includes("music")) {
e.reply([ e.reply([
segment.image(`${path}/thumbnail.png`), segment.image(`${path}/thumbnail.png`),
`${this.identifyPrefix}识别:油管音乐,视频时长超限 \n视频标题:${title}` `${this.identifyPrefix}识别:油管音乐\n视频标题:${title}`
]); ]);
await ytDlpHelper(path, url, isOversea, this.myProxy, this.videoDownloadConcurrency, true, graphics, timeRange); await ytDlpHelper(path, url, isOversea, this.myProxy, this.videoDownloadConcurrency, true, graphics, timeRange);
e.reply(segment.record(`${ path }/temp.mp3`)); e.reply(segment.record(`${ path }/temp.mp3`));