From 23bba221b53cad2ae40209a1f17be3d48bc0dc30 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 8 Sep 2024 14:27:34 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcJyPublic.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcJyPublic.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/SrcJyPublic.js b/SrcJyPublic.js index 81e1e7fa..4f5993dd 100644 --- a/SrcJyPublic.js +++ b/SrcJyPublic.js @@ -346,9 +346,8 @@ function getContnet(url) { } } let headers = { 'User-Agent': MOBILE_UA }; - if(!url.endsWith('.json')){ + if(!url.endsWith('.json') && !url.endsWith('.js') && !url.endsWith('.txt') && !url.endsWith('.m3u') && !url.endsWith('.m3u8')){ headers['User-Agent'] = 'okhttp/4.12.0'; - log('使用壳子ua访问'); } return fetch(url, {headers: headers, timeout:20000}); }