🐞 fix: 修复tiktok解析问题

This commit is contained in:
zhiyu1998 2023-03-08 16:31:54 +08:00
parent 1ff31f5aaf
commit 7397722cbc

View File

@ -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`;