🐞 fix: 回退哔哩哔哩解析部分问题

This commit is contained in:
zhiyu1998 2023-02-10 14:26:14 +08:00
parent 5d0adf5f66
commit 3c8a145aa7

View File

@ -177,7 +177,7 @@ export class tools extends plugin {
url = urlRex.exec(url)[0]; url = urlRex.exec(url)[0];
} }
const path = `${ this.defaultPath }${ this.e.group_id || this.e.user_id }/temp/` const path = `${ this.defaultPath }${ this.e.group_id || this.e.user_id }/`
if (!fs.existsSync(path)) { if (!fs.existsSync(path)) {
mkdirsSync(path); mkdirsSync(path);
} }
@ -460,7 +460,6 @@ export class tools extends plugin {
return true; return true;
} }
// 工具:下载哔哩哔哩
async downBili (title, videoUrl, audioUrl) { async downBili (title, videoUrl, audioUrl) {
return Promise.all([ return Promise.all([
downloadBFile( downloadBFile(
@ -489,7 +488,7 @@ export class tools extends plugin {
), ),
]) ])
.then(data => { .then(data => {
mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4') return mergeFileToMp4(data[0].fullFileName, data[1].fullFileName, title + '.mp4');
}) })
} }