From be720bad6800295af8560c399abadc9e7bae1b64 Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Tue, 18 Oct 2022 09:12:11 +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 | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/SrcLive.js b/SrcLive.js index 5bdb0f15..dea06793 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -267,6 +267,7 @@ function LiveSet() { d.push({ title: livedata[i], url: $(["更新缓存","删除订阅","导入聚直播","导入聚影√"],2,"").select((livecfgfile, url)=>{ + try{ if(input=="更新缓存"){ showLoading('正在缓存,请稍后.'); let YChtml = request(url,{timeout:2000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); @@ -371,8 +372,13 @@ function LiveSet() { return "toast://文件异常,导入失败"; } } - return "hiker://empty"; - }, livecfgfile, livedata[i]), + return "hiker://empty"; + }catch(e){ + hideLoading(); + log(e.message); + return "toast://操作异常,详情查看日志"; + } + }, livecfgfile, livedata[i]), col_type: "text_1" }); }