|
|
@ -41,11 +41,15 @@ function xunmi(name,data,ishkss) { |
|
|
|
} |
|
|
|
} |
|
|
|
try{ |
|
|
|
try{ |
|
|
|
if(JYconfig.TVBoxDY){ |
|
|
|
if(JYconfig.TVBoxDY){ |
|
|
|
let DYdatalist = []; |
|
|
|
if(storage0.getMyVar('JYTVBoxDYdatalist')){ |
|
|
|
|
|
|
|
var DYdatalist = storage0.getMyVar('JYTVBoxDYdatalist')||[]; |
|
|
|
|
|
|
|
}else{ |
|
|
|
|
|
|
|
var DYdatalist = []; |
|
|
|
let TVBoxDY = JYconfig.TVBoxDY; |
|
|
|
let TVBoxDY = JYconfig.TVBoxDY; |
|
|
|
if(/\/storage\/emulated\//.test(TVBoxDY)){TVBoxDY = "file://" + TVBoxDY} |
|
|
|
if(/\/storage\/emulated\//.test(TVBoxDY)){TVBoxDY = "file://" + TVBoxDY} |
|
|
|
if(/^http/.test(TVBoxDY)){ |
|
|
|
if(/^http/.test(TVBoxDY)){ |
|
|
|
var dyhtml = fetchCache(TVBoxDY,96, { timeout:2000 }); |
|
|
|
//var dyhtml = fetchCache(TVBoxDY,96, { timeout:2000 });
|
|
|
|
|
|
|
|
var dyhtml = request(TVBoxDY,{ timeout:2000 }); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
var dyhtml = fetch(TVBoxDY); |
|
|
|
var dyhtml = fetch(TVBoxDY); |
|
|
|
} |
|
|
|
} |
|
|
@ -78,7 +82,8 @@ function xunmi(name,data,ishkss) { |
|
|
|
urlfile = urlfile.replace("clan://TVBox/",TVBoxDY.match(/file.*\//)[0]); |
|
|
|
urlfile = urlfile.replace("clan://TVBox/",TVBoxDY.match(/file.*\//)[0]); |
|
|
|
} |
|
|
|
} |
|
|
|
if(/^http/.test(urlfile)){ |
|
|
|
if(/^http/.test(urlfile)){ |
|
|
|
var biuhtml = fetchCache(urlfile,168,{timeout:2000}); |
|
|
|
//var biuhtml = fetchCache(urlfile,168,{timeout:2000});
|
|
|
|
|
|
|
|
var biuhtml = request(urlfile, {timeout:2000}); |
|
|
|
}else{ |
|
|
|
}else{ |
|
|
|
var biuhtml = fetch(urlfile); |
|
|
|
var biuhtml = fetch(urlfile); |
|
|
|
} |
|
|
|
} |
|
|
@ -135,11 +140,11 @@ function xunmi(name,data,ishkss) { |
|
|
|
} |
|
|
|
} |
|
|
|
}); |
|
|
|
}); |
|
|
|
storage0.putMyVar('JYTVBoxDYdatalist',DYdatalist);
|
|
|
|
storage0.putMyVar('JYTVBoxDYdatalist',DYdatalist);
|
|
|
|
|
|
|
|
} |
|
|
|
datalist = datalist.concat(DYdatalist); |
|
|
|
datalist = datalist.concat(DYdatalist); |
|
|
|
log(storage0.getMyVar('JYTVBoxDYdatalist')); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
}catch(e){ |
|
|
|
}catch(e){ |
|
|
|
log(e.message) |
|
|
|
log('TVBox订阅失败>'+e.message) |
|
|
|
} |
|
|
|
} |
|
|
|
hideLoading(); |
|
|
|
hideLoading(); |
|
|
|
} |
|
|
|
} |
|
|
|