From 1d6536217da4a45851728398d8085e1e5384c55b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Wed, 23 Nov 2022 10:13:52 +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 | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/SrcLive.js b/SrcLive.js index 1fb7af20..c27be0dc 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -411,6 +411,9 @@ function LiveSet() { img: "https://img.vinua.cn/images/QqyC.png", url: $("","输入通用格式的tv链接地址").input((livecfgfile,liveconfig)=>{ if(input){ + if(/^\/storage/){ + input = 'file://' + input; + } let livedata = liveconfig['data']||[]; if(!livedata.some(item => item.url==input)){ showLoading('正在验证链接有效性...'); @@ -477,7 +480,9 @@ function LiveSet() { return "toast://更新失败"; } }else if(input=="删除订阅"){ - deleteCache(url); + if(/^http/.test(url)){ + deleteCache(url); + } let livecfg = fetch(livecfgfile); if(livecfg != ""){ eval("var liveconfig = " + livecfg);