From 0289bead41121f5df9caa640b5ce7f8620b10289 Mon Sep 17 00:00:00 2001
From: src48597962 <48597962@qq.com>
Date: Sat, 15 Oct 2022 21:01:46 +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 | 26 ++++++++++++++++++++++++++
Srclive.js | 15 ---------------
2 files changed, 26 insertions(+), 15 deletions(-)
create mode 100644 SrcLive.js
delete mode 100644 Srclive.js
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