diff --git a/SrcLive.js b/SrcLive.js index 23bf8534..54ececde 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -25,26 +25,22 @@ function Live() { let livedata = liveconfig['data']||[]; let JYlivefile = "hiker://files/rules/Src/Juying/live.txt"; + if(!getMyVar('JYlivedyurl')){ + var JYlive=fetch(JYlivefile); + } if(livedata.length>0){ + d.push({ + title: '选择订阅👉', + url: 'hiker://empty', + col_type: 'scroll_button' + }) for(let i=0;i'+dyurl:dyurl, + title: getMyVar('JYlivedyurl')==dyurl?'‘‘’’'+dyname:dyname, url: $("#noLoading#").lazyRule(() => { - if(code=="exitedit"){ - clearMyVar('editmode'); - deleteItemByCls('editmenu'); - return "toast://退出编辑,正常观看"; - }else{ - putMyVar('editmode',code); - } - for(let i in editnames){ - if(editnames[i].split('|')[1]==code){ - updateItem(code,{title:'‘‘’’'+name}) - }else{ - updateItem(editnames[i].split('|')[1],{title:editnames[i].split('|')[0]}) - } - } + return "toast://进入"+name+"模式"; }), col_type: 'scroll_button' @@ -52,9 +48,6 @@ function Live() { } } - - let JYlive=fetch(JYlivefile); - if(JYlive==""&&livedata.length>0&&getMyVar('clearlive','0')!="1"){ showLoading('发现订阅源,正在初始化'); log('本地源文件为空且有订阅,默认导入第一个订阅');