From 23438d01edc383737d39cb459ccb1924b3922f57 Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Sat, 11 Mar 2023 22:06:14 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E7=83=AD=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D=E9=83=A8=E5=88=86=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 8bd5b54..a8c0c57 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -181,7 +181,7 @@ export class tools extends plugin { const urlType = douyinTypeMap[urlTypeCode]; if (urlType === "video") { const url_2 = item.video.play_addr.url_list[2]; - downloadVideo(url_2, false, headers).then(video => { + this.downloadVideo(url_2, false, headers).then(video => { e.reply( segment.video( `${this.defaultPath}${ @@ -274,7 +274,7 @@ export class tools extends plugin { .then(resp => { const data = resp.data.aweme_list[0]; e.reply(`识别:tiktok, ${data.desc}`); - downloadVideo(data.video.play_addr.url_list[0], true).then(video => { + this.downloadVideo(data.video.play_addr.url_list[0], true).then(video => { e.reply( segment.video( `${this.defaultPath}${this.e.group_id || this.e.user_id}/temp.mp4`, @@ -470,7 +470,7 @@ export class tools extends plugin { task.push(this.downloadImg(item.url, downloadPath)); } else if (item.type === "video") { // 视频 - await downloadVideo(resp.includes.media[0].variants[0].url, true).then( + await this.downloadVideo(resp.includes.media[0].variants[0].url, true).then( _ => { e.reply(segment.video(`${downloadPath}/temp.mp4`)); },