From 00c66761062812e2aa5754c23b4e5f32006f145b Mon Sep 17 00:00:00 2001 From: src48597962 <48597962@qq.com> Date: Sun, 16 Oct 2022 11:13:07 +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 | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/SrcLive.js b/SrcLive.js index d30a36f5..49020e4b 100644 --- a/SrcLive.js +++ b/SrcLive.js @@ -153,7 +153,17 @@ function guanlidata(datalist) { title: datalist[i].name, img: 'https://lanmeiguojiang.com/tubiao/ke/156.png',//https://lanmeiguojiang.com/tubiao/more/228.png col_type: 'icon_2_round', - url: "", + url: $('#noLoading#').lazyRule((name,livefile) => { + let urls = []; + let JYlive=fetch(livefile); + let JYlives = JYlive.split('\n'); + for(var i = 0; i < JYlives.length; i++){ + if(JYlives[i].indexOf(',')>-1&&JYlives[i].split(',')[0]==name){ + urls.push(JYlives[i].split(',')[1]); + } + } + return "hiker://empty"; + },datalist[i].name,livefile), extra: { cls: 'livelist' }