mirror of
https://github.com/qist/tvbox.git
synced 2026-04-21 15:02:44 +00:00
update
This commit is contained in:
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 = [];
|
||||
|
||||
Reference in New Issue
Block a user