mirror of
https://github.com/qist/tvbox.git
synced 2025-10-27 10:12:19 +00:00
update
This commit is contained in:
@@ -20,12 +20,13 @@ try {
|
||||
var v_tks = '';
|
||||
// let script = pdfa(html1,'script').find(it=>it.includes('v_tks+=')).replace(/<script>|<\\/script>/g,'');
|
||||
// eval(script);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"+"&token="+v_tks;
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2&token="+v_tks;
|
||||
// input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2";
|
||||
let html = request(input, {
|
||||
headers: {
|
||||
// 'User-Agent':'PC_UA',
|
||||
'User-Agent':'MOBILE_UA',
|
||||
// 'User-Agent':'MOBILE_UA',
|
||||
'User-Agent':'Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1',
|
||||
'Referer': input,
|
||||
}
|
||||
});
|
||||
@@ -41,13 +42,12 @@ try {
|
||||
episodes.forEach(function(ep) {
|
||||
let data = JSON.parse(ep["resData"]);
|
||||
data.map(val => {
|
||||
|
||||
if(!map[val.flag]){
|
||||
map[val.flag] = [val.url]
|
||||
} else {
|
||||
map[val.flag].push(val.url)
|
||||
}
|
||||
})
|
||||
map[val.flag] = [val.url.replaceAll('##','#')]
|
||||
} else {
|
||||
map[val.flag].push(val.url.replaceAll('##','#'))
|
||||
}
|
||||
})
|
||||
});
|
||||
|
||||
for(var key in map){
|
||||
|
||||
Reference in New Issue
Block a user