更新 'SrcLive.js'

pull/1/head
src48597962 2 years ago
parent 0e4a1f3f39
commit a97ea04df7
  1. 10
      SrcLive.js

@ -236,8 +236,10 @@ function LiveSet() {
col_type: 'text_center_1', col_type: 'text_center_1',
url: $('#noLoading#').lazyRule(() => { url: $('#noLoading#').lazyRule(() => {
let urls = []; let urls = [];
let JYlivefile=fetch("hiker://files/rules/Src/Juying/live.txt"); let JYlivefile="hiker://files/rules/Src/Juying/live.txt";
let JYlives = JYlivefile.split('\n'); let JYlive = fetch(JYlivefile);
if(JYlive!=""){
let JYlives = JYlive.split('\n');
for(let i = 0; i < JYlives.length; i++){ for(let i = 0; i < JYlives.length; i++){
try{ try{
if(JYlives[i].indexOf(',')>-1&&JYlives[i].indexOf('#genre#')==-1){ if(JYlives[i].indexOf(',')>-1&&JYlives[i].indexOf('#genre#')==-1){
@ -258,6 +260,7 @@ function LiveSet() {
} }
return 1; return 1;
} }
log(urls.length)
let urlscheck = urls.map((list)=>{ let urlscheck = urls.map((list)=>{
return { return {
func: task, func: task,
@ -282,6 +285,9 @@ function LiveSet() {
} }
writeFile(JYlivefile, JYlives.join('\n')); writeFile(JYlivefile, JYlives.join('\n'));
return "toast://删除疑似失效源"+fails.length+"条"; return "toast://删除疑似失效源"+fails.length+"条";
}else{
return "toast://无直播数据源";
}
}) })
}); });
setHomeResult(d); setHomeResult(d);

Loading…
Cancel
Save