This commit is contained in:
qist
2023-09-19 17:48:29 +08:00
parent 29f7b51842
commit d31332e71d
48 changed files with 5423 additions and 19034 deletions

View File

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