更新 'SrcLive.js'

pull/1/head
src48597962 2 years ago
parent 484ea3c027
commit 91cc61601b
  1. 3
      SrcLive.js

@ -244,14 +244,15 @@ function LiveSet() {
title: livedata[i], title: livedata[i],
url: $(["更新缓存","删除订阅","导入聚直播","导入聚影√"],2,"").select((livecfgfile, url)=>{ url: $(["更新缓存","删除订阅","导入聚直播","导入聚影√"],2,"").select((livecfgfile, url)=>{
if(input=="更新缓存"){ if(input=="更新缓存"){
showLoading('正在缓存,请稍后.');
let YChtml = request(url,{timeout:2000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,''); let YChtml = request(url,{timeout:2000}).replace(/TV-/g,'TV').replace(/\[.*\]/g,'');
if(YChtml){ if(YChtml){
showLoading('正在缓存,请稍后.');
deleteFile('live'+md5(url)+'.txt'); deleteFile('live'+md5(url)+'.txt');
saveFile('live'+md5(url)+'.txt',YChtml); saveFile('live'+md5(url)+'.txt',YChtml);
hideLoading(); hideLoading();
return "toast://更新文件缓存成功"; return "toast://更新文件缓存成功";
}else{ }else{
hideLoading();
return "toast://更新失败"; return "toast://更新失败";
} }
}else if(input=="删除订阅"){ }else if(input=="删除订阅"){

Loading…
Cancel
Save