mirror of
https://github.com/Jerryplusy/rc-plugin.git
synced 2025-10-14 16:19:18 +00:00
🐞 fix: V1.6.7-lts 修复哔哩哔哩下载部分用户无法使用问题
1. 修复函数`downloadMp3`导致的一系列下载问题 2. 修复netease music下载 3. 修复皮皮虾的问题 4. 修正部分注释
This commit is contained in:
parent
00e0baf7a6
commit
3525599e2c
@ -515,15 +515,12 @@ export class tools extends plugin {
|
||||
const { baseUrl: audioBaseUrl } = audioData;
|
||||
e.reply(`正在下载${ height }p ${ Math.trunc(frameRate) }帧数 视频,请稍候...`);
|
||||
const path = `${ this.getCurDownloadPath(e) }/`;
|
||||
const that = this;
|
||||
// 添加下载任务到并发队列
|
||||
this.queue.add(() =>
|
||||
this.downBili(`${ path }${ videoId }`, videoBaseUrl, audioBaseUrl)
|
||||
that.downBili(`${ path }temp`, videoBaseUrl, audioBaseUrl)
|
||||
.then(_ => {
|
||||
e.group.sendFile(fs.readFileSync(`${ path }${ videoId }.mp4`));
|
||||
})
|
||||
.then(_ => {
|
||||
// 清除文件
|
||||
fs.unlinkSync(`${ path }${ videoId }.mp4`);
|
||||
that.sendVideoToUpload(e, `${ path }temp.mp4`);
|
||||
})
|
||||
.catch(err => {
|
||||
logger.error(`[R插件][B站下载引擎] ${ err }`);
|
||||
|
Loading…
x
Reference in New Issue
Block a user