From 49f765e0820faf558e3428e94cef9e96e05d55c1 Mon Sep 17 00:00:00 2001 From: zhiyu1998 <542716863@qq.com> Date: Sun, 21 Apr 2024 21:40:27 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9E=20fix:=20V1.6.7=20=E4=BF=AE?= =?UTF-8?q?=E5=A4=8Dy2b=E8=A7=A3=E6=9E=90pr=E5=90=8E=E7=BB=86=E8=8A=82?= =?UTF-8?q?=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 5a021a2..e01a2d4 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -7,7 +7,7 @@ import axios from "axios"; import _ from "lodash"; import tunnel from "tunnel"; import HttpProxyAgent from "https-proxy-agent"; -import { execSync } from "child_process"; +import { execSync, exec } from "child_process"; import { checkAndRemoveFile, deleteFolderRecursive, mkdirIfNotExists, readCurrentDir } from "../utils/file.js"; import { downloadBFile, @@ -1143,9 +1143,11 @@ export class tools extends plugin { } /** - * youtube解析 - * @param e + * yt-dlp工具类 * @returns {Promise} + * @param path 下载路径 + * @param url 下载链接 + * @param isOversea 是否是海外用户 */ async dy2b(path, url, isOversea) { return new Promise((resolve, reject) => { @@ -1162,6 +1164,7 @@ export class tools extends plugin { }); } + // 油管解析 async sy2b(e) { let videoSizeLimit = 30 const isOversea = await this.isOverseasServer();