更新 'SrcLive.js'

master
src48597962 6 months ago
parent f89b51eaaa
commit 686eac6990
  1. 19
      SrcLive.js

@ -8,6 +8,7 @@ function Live() {
clearMyVar('JYlivedyurl');
clearMyVar('selectgroup');
clearMyVar('JYlivelocal');
clearMyVar('JYlive_datalist');
}));
var d = [];
@ -74,6 +75,7 @@ function Live() {
url: $("#noLoading#").lazyRule(() => {
putMyVar('JYlivedyurl', 'juying');
putMyVar('JYlivelocal', '1');
clearMyVar('JYlive_datalist');
refreshPage(false);
return "toast://聚影直播本地源数据";
}),
@ -92,6 +94,7 @@ function Live() {
putMyVar('JYlivedyurl', dyurl);
clearMyVar('JYlivelocal');
clearMyVar('editmode');
clearMyVar('JYlive_datalist');
refreshPage(false);
return "toast://已切换远程订阅:" + dyname;
}, dyname, dyurl),
@ -106,22 +109,20 @@ function Live() {
col_type: 'line'
})
}
let JYlives = [];
if (JYlive) {
if (JYlive.indexOf('#genre#') > -1) {
var JYlives = JYlive.split('\n');
JYlives = JYlive.split('\n');
} else if (JYlive.indexOf('#EXTINF:-1') > -1) {
var JYlives = JYlive.split('#EXTINF:-1 ');
} else {
var JYlives = [];
JYlives = JYlive.split('#EXTINF:-1 ');
}
} else {
var JYlives = [];
}
if (JYlives.length > 0) {
let datalist = [];
let datalist = storage0.getMyVar('JYlive_datalist') || [];
let datalist2 = [];
if(datalist.length == 0){
let group = "";
for (let i = 0; i < JYlives.length; i++) {
try {
@ -145,6 +146,8 @@ function Live() {
obj[next.name] ? "" : (obj[next.name] = true && newArr.push(next));
return newArr;
}, []);
}
d.push({
title: "🔍",
url: $.toString((guanlidata, datalist) => {

Loading…
Cancel
Save