From 7587272dcd056aee0493b8e5413ffa64989c3e69 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Fri, 20 Sep 2024 12:56:04 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8D=20p-qu?= =?UTF-8?q?eue=20=E4=B8=8B=E8=BD=BD=E8=A7=86=E9=A2=91=E9=97=AE=E9=A2=98?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E9=80=9A=E7=94=A8=E8=A7=A3=E6=9E=90=E5=87=BA?= =?UTF-8?q?=E9=94=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 04107bf..569f497 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -1404,6 +1404,7 @@ export class tools extends plugin { // 视频:https://www.kuaishou.com/short-video/3xhjgcmir24m4nm const url = adapter.video; this.downloadVideo(url).then(path => { + logger.info(path); this.sendVideoToUpload(e, `${ path }/temp.mp4`) }); } else { @@ -2125,13 +2126,13 @@ export class tools extends plugin { return await this.queue.add(async () => { // 如果是用户设置了单线程,则不分片下载 if (numThreads === 1) { - await this.downloadVideoWithSingleThread(downloadVideoParams); + return this.downloadVideoWithSingleThread(downloadVideoParams); } else if (numThreads !== 1 && this.biliDownloadMethod === 1) { - await this.downloadVideoWithAria2(downloadVideoParams, numThreads); + return this.downloadVideoWithAria2(downloadVideoParams, numThreads); } else if (numThreads !== 1 && this.biliDownloadMethod === 2) { - await this.downloadVideoUseAxel(downloadVideoParams, numThreads); + return this.downloadVideoUseAxel(downloadVideoParams, numThreads); } else { - await this.downloadVideoWithMultiThread(downloadVideoParams, numThreads); + return this.downloadVideoWithMultiThread(downloadVideoParams, numThreads); } }); }