|
|
@ -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); |
|
|
|