From 999a5665b70682dc34872f00271f24dbf8b7f82b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 19 Oct 2022 09:32:12 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=20'SrcLive.js'?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- SrcLive.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index df4a9246..89ca0fd6 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -437,7 +437,7 @@ function LiveSet() { if(input){ let livedata = liveconfig['data']||[]; if(!livedata.some(item => item.url==input)){ - let YChtml = request(input,{timeout:2000}); + let YChtml = request(input,{timeout:3000}); if(YChtml.indexOf('#genre#')>-1){ return $("","起个名字").input((livedata,url,livecfgfile,liveconfig)=>{ if(input){ @@ -487,8 +487,10 @@ function LiveSet() { try{ if(input=="更新缓存"){ showLoading('正在缓存,请稍后.'); - let YChtml = fetchCache(url,24,{timeout:5000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); - if(YChtml){ + let YChtml = request(url,{timeout:3000}); + if(YChtml.indexOf('#genre#')>-1){ + deleteCache(url); + let YChtml = fetchCache(url,24,{timeout:3000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); hideLoading(); return "toast://更新文件缓存成功"; }else{