From 2e446159562aa0e132571593ec0dec4177c7c1a7 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sat, 12 Nov 2022 13:09:21 +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 | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index 53526f9e..e2833156 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -43,12 +43,16 @@ function Live() { } } if(JYlivedyurl!="juying"){ - showLoading('发现订阅源,正在初始化'); - let YChtml = fetchCache(JYlivedyurl,24,{timeout:3000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); - if(YChtml.indexOf('#genre#')>-1){ - JYlive = YChtml; + try{ + showLoading('发现订阅源,正在初始化'); + let YChtml = fetchCache(JYlivedyurl,48,{timeout:3000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); + if(YChtml.indexOf('#genre#')>-1){ + JYlive = YChtml; + } + hideLoading(); + }catch(e){ + log(e.message); } - hideLoading(); } }