From 7397722cbcdd5962d7c55a8fca4104b60586c80a Mon Sep 17 00:00:00 2001 From: zhiyu1998 Date: Wed, 8 Mar 2023 16:31:54 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20=E4=BF=AE=E5=A4=8Dtiktok?= =?UTF-8?q?=E8=A7=A3=E6=9E=90=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/apps/tools.js b/apps/tools.js index 447cfec..d799b1f 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -244,7 +244,8 @@ export class tools extends plugin { } else { url = urlRex.exec(url)[0]; } - const idVideo = await this.getIdVideo(url); + let idVideo = await this.getIdVideo(url) + idVideo = idVideo.replace(/\//g, ""); // API链接 const API_URL = `https://api16-normal-c-useast1a.tiktokv.com/aweme/v1/feed/?aweme_id=${idVideo}&version_code=262&app_name=musical_ly&channel=App&device_id=null&os_version=14.4.2&device_platform=iphone&device_type=iPhone9`;