更新源
This commit is contained in:
parent
bc10b85a41
commit
a59dd793cc
@ -26,7 +26,8 @@ VOD.vod_name = pdfh(html1, "h2&&Text");
|
||||
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,
|
||||
}
|
||||
});
|
||||
@ -44,7 +45,7 @@ VOD.vod_name = pdfh(html1, "h2&&Text");
|
||||
if (!playMap.hasOwnProperty(source)) {
|
||||
playMap[source] = []
|
||||
}
|
||||
playMap[source].push(playurl["url"])
|
||||
playMap[source].push(playurl["url"].replaceAll('##','#'))
|
||||
})
|
||||
});
|
||||
let playFrom = [];
|
||||
|
||||
@ -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){
|
||||
|
||||
@ -1 +1 @@
|
||||
3.9.47beta36
|
||||
3.9.47beta37
|
||||
10
js/爱看机器人.js
10
js/爱看机器人.js
@ -24,7 +24,13 @@ try {
|
||||
// print('v_tks:'+v_tks);
|
||||
input = "https://www.ikanbot.com/api/getResN?videoId=" + input.split("/").pop() + "&mtype=2"+"&token="+v_tks;
|
||||
// let html = request(input,{headers: {'User-Agent':'PC_UA','Referer': input}});
|
||||
let html = request(input,{headers: {'User-Agent':'MOBILE_UA','Referer': input}});
|
||||
// let html = request(input,{headers: {'User-Agent':'MOBILE_UA','Referer': input}});
|
||||
let html = request(input, {
|
||||
headers: {
|
||||
'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,
|
||||
}
|
||||
});
|
||||
print(html);
|
||||
html = JSON.parse(html);
|
||||
let episodes = html.data.list;
|
||||
@ -39,7 +45,7 @@ try {
|
||||
if (!playMap.hasOwnProperty(source)) {
|
||||
playMap[source] = []
|
||||
}
|
||||
playMap[source].push(playurl["url"])
|
||||
playMap[source].push(playurl["url"].replaceAll('##','#'))
|
||||
})
|
||||
});
|
||||
let playFrom = [];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user