diff --git a/SrcLive.js b/SrcLive.js new file mode 100644 index 00000000..daf6a09b --- /dev/null +++ b/SrcLive.js @@ -0,0 +1,26 @@ +function SRCSet() { + addListener("onClose", $.toString(() => { + //clearMyVar('guanlicz'); + })); + + var d = []; + let livefile = "hiker://files/rules/Src/Juying/live.txt"; + let JYlive=fetch(livefile); + if(JYlive){ + var datalist = JYlive.split('\n'); + }else{ + var datalist = []; + } + if(datalist.length>0){ + d.push({ + title: '
', + col_type: 'rich_text' + }); + }else{ + d.push({ + title: '没有直播源数据', + col_type: 'rich_text' + }); + } + setHomeResult(d); +} \ No newline at end of file diff --git a/Srclive.js b/Srclive.js deleted file mode 100644 index b9403cd1..00000000 --- a/Srclive.js +++ /dev/null @@ -1,15 +0,0 @@ -function SRCSet() { - addListener("onClose", $.toString(() => { - clearMyVar('guanlicz'); - clearMyVar('duoselect'); - clearMyVar('datalist'); - //refreshPage(false); - })); - setPageTitle("♥管理"+getMyVar('SrcJuying-Version', '')); - clearMyVar('duoselect'); - clearMyVar('datalist'); - function getTitle(title, Color) { - return '' + title + ''; - } - var d = []; -} \ No newline at end of file