From e35d5e514059f95486a945a9def985ecba7659e8 Mon Sep 17 00:00:00 2001 From: zhiyu <542716863@qq.com> Date: Tue, 2 Jul 2024 13:56:51 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=88=20pref:=20=E4=BF=AE=E5=89=AA?= =?UTF-8?q?=E5=86=97=E4=BD=99=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- apps/tools.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/tools.js b/apps/tools.js index 21235df..26f6700 100644 --- a/apps/tools.js +++ b/apps/tools.js @@ -291,12 +291,11 @@ export class tools extends plugin { // 判断是否使用压缩格式 const { play_addr_265, play_addr_h264, play_addr } = item.video; // 使用今日头条 CDN 进一步加快解析速度 + const videoAddrURI = play_addr.uri; if (this.douyinCompression === 1) { - const videoAddrURI = Math.random() > 0.5 ? play_addr_265.uri : play_addr_h264.uri; resUrl = DY_TOUTIAO_INFO.replace("1080p", "720p").replace("{}", videoAddrURI); } else { // 原始格式,ps. videoAddrList这里[0]、[1]是 http,[最后一个]是 https - const videoAddrURI = play_addr.uri; resUrl = DY_TOUTIAO_INFO.replace("{}", videoAddrURI); }