mirror of
https://github.com/qist/tvbox.git
synced 2025-10-28 02:32:16 +00:00
update
This commit is contained in:
106
js/4khdr.js
106
js/4khdr.js
@@ -12,7 +12,7 @@ var rule = {
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/4khdr.txt',
|
||||
'Cookie':'hvLw_2132_saltkey=TIHLl6lF; hvLw_2132_lastvisit=1692640733; hvLw_2132_visitedfid=2; hvLw_2132_sendmail=1; _clck=bmvlfv|2|fec|0|1328; hvLw_2132_seccodecSAH73=7547.d0a543395de43bfa49; hvLw_2132_ulastactivity=1692644363%7C0; hvLw_2132_auth=8608dKQC6bKMZh5FKg09ZhhWjbrygDZw3i%2FXQTK6RYYYKIhxi%2FVywBubisxssBZlQ%2BNfz9nK3ZiCNnUvF9HlL%2Fehrg; hvLw_2132_lastcheckfeed=99213%7C1692644363; hvLw_2132_checkfollow=1; hvLw_2132_lip=163.204.43.186%2C1692644363; hvLw_2132_sid=0; hvLw_2132_checkpm=1; hvLw_2132_noticeTitle=1; _clsk=x9bivq|1692644368391|2|1|x.clarity.ms/collect; hvLw_2132_lastact=1692644370%09index.php%09forumdisplay; hvLw_2132_st_t=99213%7C1692644370%7Ceeabd9f3f324a9138f1be3cc46fdcd01; hvLw_2132_forum_lastvisit=D_2_1692644370',
|
||||
},
|
||||
timeout:5000,
|
||||
class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印",
|
||||
@@ -37,108 +37,56 @@ var rule = {
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
let d = pdfa(html, 'div.pcb table.t_table a');
|
||||
let tabsa = [];
|
||||
let tabsq = [];
|
||||
let tabsm = false;
|
||||
let tabse = false;
|
||||
let d = pdfa(html, 'table.t_table');
|
||||
let aliIndex=1;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
log("burl >>>>>>" + burl);
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
tabse = true;
|
||||
TABS.push("aliyun"+aliIndex);
|
||||
aliIndex = aliIndex + 1;
|
||||
}
|
||||
});
|
||||
if (tabsm === true){
|
||||
d = pdfa(html, 'table.t_table a[href^="magnet"]');
|
||||
if (d.length>0){
|
||||
TABS.push("磁力");
|
||||
}
|
||||
if (tabse === true){
|
||||
TABS.push("電驢");
|
||||
}
|
||||
if (false && tabsa.length + tabsq.length > 1){
|
||||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
let tmpIndex;
|
||||
tmpIndex=1;
|
||||
tabsa.forEach(function(it){
|
||||
TABS.push(it + tmpIndex);
|
||||
tmpIndex = tmpIndex + 1;
|
||||
});
|
||||
tmpIndex=1;
|
||||
tabsq.forEach(function(it){
|
||||
TABS.push(it + tmpIndex);
|
||||
tmpIndex = tmpIndex + 1;
|
||||
});
|
||||
log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
let d = pdfa(html, 'div.pcb table.t_table a');
|
||||
let lista = [];
|
||||
let listq = [];
|
||||
let listm = [];
|
||||
let liste = [];
|
||||
let d = pdfa(html, 'table.t_table');
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('4khdr title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('4khdr burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
if (true){
|
||||
if (TABS.length==1){
|
||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||
}else{
|
||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||
}
|
||||
}else{
|
||||
burl = 'push://' + burl;
|
||||
}
|
||||
loopresult = title + '$' + burl;
|
||||
lista.push(loopresult);
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
if (true){
|
||||
if (TABS.length==1){
|
||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||
}else{
|
||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||
}
|
||||
}else{
|
||||
burl = 'push://' + burl;
|
||||
}
|
||||
loopresult = title + '$' + burl;
|
||||
listq.push(loopresult);
|
||||
}else if (burl.startsWith("magnet")){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(burl);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
LISTS.push([loopresult]);
|
||||
}
|
||||
});
|
||||
let listm = [];
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("magnet")){
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
listm.push(loopresult);
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
liste.push(loopresult);
|
||||
}
|
||||
});
|
||||
if (listm.length>0){
|
||||
LISTS.push(listm);
|
||||
}
|
||||
if (liste.length>0){
|
||||
LISTS.push(liste);
|
||||
}
|
||||
if (false && lista.length + listq.length > 1){
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
lista.forEach(function(it){
|
||||
LISTS.push([it]);
|
||||
});
|
||||
listq.forEach(function(it){
|
||||
LISTS.push([it]);
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
||||
@@ -151,7 +99,7 @@ let new_host= HOST + '/search.php';
|
||||
let new_html=request(new_host);
|
||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||
log("4khdr formhash>>>>>>>>>>>>>>>" + formhash);
|
||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + KEY;
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let postData = {
|
||||
body: params
|
||||
|
||||
26
js/97tvs.js
26
js/97tvs.js
@@ -181,22 +181,22 @@ let d=[];
|
||||
let dlist = pdfa(search_html, 'div.mainleft ul#post_container li');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'div.thumbnail img&&alt').replace( /(<([^>]+)>)/ig, '');
|
||||
if (searchObj.quick === true){
|
||||
if (false && title.includes(KEY)){
|
||||
if (title.includes(KEY)){
|
||||
if (searchObj.quick === true){
|
||||
title = KEY;
|
||||
}
|
||||
let img = pd(it, 'div.thumbnail img&&src', HOST);
|
||||
let content = pdfh(it, 'div.article div.entry_post&&Text');
|
||||
let desc = pdfh(it, 'div.info&&span.info_date&&Text');
|
||||
let url = pd(it, 'div.thumbnail&&a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
});
|
||||
}
|
||||
let img = pd(it, 'div.thumbnail img&&src', HOST);
|
||||
let content = pdfh(it, 'div.article div.entry_post&&Text');
|
||||
let desc = pdfh(it, 'div.info&&span.info_date&&Text');
|
||||
let url = pd(it, 'div.thumbnail&&a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
|
||||
@@ -32,13 +32,45 @@ var rule = {
|
||||
},
|
||||
timeout: 5000,
|
||||
play_parse: true,
|
||||
lazy: '',
|
||||
// lazy: '',
|
||||
lazy:`js:
|
||||
let purl = input.split("|")[0];
|
||||
let pfrom = input.split("|")[1];
|
||||
let cid = input.split("|")[2];
|
||||
print("purl:" + purl);
|
||||
print("pfrom:" + pfrom);
|
||||
print("cid:" + cid);
|
||||
let dan = 'https://api.bilibili.com/x/v1/dm/list.so?oid=' + cid;
|
||||
if (/bilibili/.test(pfrom)){
|
||||
let result = {};
|
||||
result['parse'] = 0;
|
||||
result['playUrl'] = '';
|
||||
result['url'] = unescape(purl);
|
||||
result['header'] = {
|
||||
Referer: 'https://live.bilibili.com',
|
||||
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/86.0.4240.198 Safari/537.36'
|
||||
};
|
||||
result['danmaku'] = dan;
|
||||
if (/h5/.test(purl)) {
|
||||
result['contentType'] = '';
|
||||
input = result
|
||||
} else {
|
||||
result['contentType'] = 'video/x-flv';
|
||||
input = result
|
||||
}
|
||||
} else {
|
||||
input = purl
|
||||
}
|
||||
`,
|
||||
limit: 6,
|
||||
推荐: '*',
|
||||
一级: 'json:data;roomName;roomPic;ownerName;roomId',
|
||||
// 二级: 'js:var d=[];var jo=JSON.parse(request(input)).data;VOD={vod_id:jo.roomId,vod_name:jo.roomName,vod_pic:jo.roomPic,type_name:jo.platForm.replace("huya","虎牙").replace("douyu","斗鱼").replace("cc","网易CC").replace("bilibili","哔哩哔哩")+"."+jo.categoryName,vod_content:"🏷分区:"+jo.platForm.replace("huya","虎牙").replace("douyu","斗鱼").replace("cc","网易CC").replace("bilibili","哔哩哔哩")+"·"+jo.categoryName+" 🏷UP主:"+jo.ownerName+" 🏷人气:"+jo.online+(jo.isLive===1?" 🏷状态:正在直播":"状态:未开播")};var playurl=JSON.parse(request("http://live.yj1211.work/api/live/getRealUrl?platform="+jo.platForm+"&roomId="+jo.roomId)).data;var name={"OD":"原画","FD":"流畅","LD":"标清","SD":"高清","HD":"超清","2K":"2K","4K":"4K","FHD":"全高清","XLD":"极速","SQ":"普通音质","HQ":"高音质"};Object.keys(playurl).forEach(function(key){if(!/ayyuid|to/.test(key)){d.push({title:name[key],url:playurl[key]})}});VOD.vod_play_from="选择画质";VOD.vod_play_url=d.map(function(it){return it.title+"$"+it.url}).join("#");setResult(d)',
|
||||
二级: `js:
|
||||
var d = [];
|
||||
if (typeof play_url === "undefined") {
|
||||
var play_url = ""
|
||||
}
|
||||
input = /platform=&/.test(input) ? input.replace("platform=", "platform=bilibili") : input;
|
||||
var jo = JSON.parse(request(input)).data;
|
||||
VOD = {
|
||||
@@ -72,7 +104,8 @@ var rule = {
|
||||
});
|
||||
VOD.vod_play_from = "选择画质";
|
||||
VOD.vod_play_url = d.map(function(it) {
|
||||
return it.title + "$" + it.url
|
||||
// return it.title + "$" + it.url
|
||||
return it.title + "$" + play_url + urlencode(it.url + "|" + jo.platForm + "|" + jo.roomId)
|
||||
}).join("#");
|
||||
setResult(d)
|
||||
`,
|
||||
|
||||
@@ -96,7 +96,7 @@ if (typeof setCk !== "undefined"){
|
||||
rule_fetch_params.headers.Cookie=cookie;
|
||||
}
|
||||
log('aipanso search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
||||
log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
|
||||
//log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
|
||||
|
||||
new_html = json['body'];
|
||||
|
||||
@@ -104,22 +104,22 @@ let d=[];
|
||||
let dlist = pdfa(new_html, 'van-row:has(>a[href^="/s/"])');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'van-card template&&Text');
|
||||
if (false && searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
if (title.includes(KEY)){
|
||||
if (searchObj.quick === true){
|
||||
title = KEY;
|
||||
}
|
||||
let img = pd(it, 'van-card&&thumb', HOST);
|
||||
let content = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||
let desc = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
}
|
||||
let img = pd(it, 'van-card&&thumb', HOST);
|
||||
let content = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||
let desc = pdfh(it, 'van-card template:eq(1)&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
|
||||
@@ -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){
|
||||
|
||||
@@ -13,4 +13,4 @@ https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m
|
||||
#atsushi
|
||||
https://ghproxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u
|
||||
#AV集
|
||||
../livex.txt
|
||||
../livex.m3u
|
||||
|
||||
@@ -9,8 +9,6 @@
|
||||
{"name":"俊于•综合","url":"http://home.jundie.top:81/Cat/tv/live.txt"},
|
||||
{"name":"初秋语•电台","url":"https://ghproxy.com/https:/raw.githubusercontent.com/gaotianliuyun/gao/master/radio.txt"},
|
||||
{"name":"范明明•电台","url":"https://ghproxy.com/https://raw.githubusercontent.com/fanmingming/live/main/radio/m3u/index.m3u"},
|
||||
{"name":"YanG•斗鱼","url":"https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/yu.m3u"},
|
||||
{"name":"YanG•虎牙","url":"https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/ya.m3u"},
|
||||
{"name":"肥羊•斗鱼","url":"https://ghproxy.com/https://raw.githubusercontent.com/Ftindy/IPTV-URL/main/douyuyqk.m3u"},
|
||||
{"name":"肥羊•虎牙","url":"https://ghproxy.com/https://raw.githubusercontent.com/Ftindy/IPTV-URL/main/huyayqk.m3u"},
|
||||
{"name":"肥羊•YY","url":"https://ghproxy.com/https://raw.githubusercontent.com/Ftindy/IPTV-URL/main/yylunbo.m3u"},
|
||||
|
||||
@@ -3,7 +3,7 @@ var rule = {
|
||||
//host:'https://www.meijumi.xyz',
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclass/page/fypage/?',
|
||||
host:'http://192.168.1.9:10078',
|
||||
host:'http://127.0.0.1:10078',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.1.9%253A4592/https://www.meijumi.net/',
|
||||
url: '/p/0/socks5%253A%252F%252F192.168.1.9%253A4592/https://www.meijumi.net/fyclass/page/fypage/?',
|
||||
filter_url:'{{fl.class}}',
|
||||
|
||||
26
js/mp4us.js
26
js/mp4us.js
@@ -156,22 +156,22 @@ let d=[];
|
||||
let dlist = pdfa(search_html, 'div#list_all li');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'img.lazy&&alt');
|
||||
if (searchObj.quick === true){
|
||||
if (false && title.includes(KEY)){
|
||||
if (title.includes(KEY)){
|
||||
if (searchObj.quick === true){
|
||||
title = KEY;
|
||||
}
|
||||
let img = pd(it, 'img.lazy&&src', HOST);
|
||||
let content = pdfh(it, 'div.text_info h2&&Text');
|
||||
let desc = pdfh(it, 'p.info&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
}
|
||||
let img = pd(it, 'img.lazy&&src', HOST);
|
||||
let content = pdfh(it, 'div.text_info h2&&Text');
|
||||
let desc = pdfh(it, 'p.info&&Text');
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
|
||||
30
js/tzfile.js
30
js/tzfile.js
@@ -40,7 +40,7 @@ let list = pdfa(html, '#primary-home ul li:has(img)');
|
||||
list.forEach(function(it) {
|
||||
d.push({
|
||||
title: pdfh(it, 'img&&alt'),
|
||||
desc: pdfh(it, 'div.post-info div.list-footer time.b2timeago&&Text') + '/' + pdfh(it, 'div.post-info div.list-footer a&&Text'),
|
||||
desc: pdfh(it, 'div.post-info .post-list-cat&&Text'),
|
||||
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST),
|
||||
url: pd(it, 'a&&href', HOST)
|
||||
});
|
||||
@@ -100,5 +100,31 @@ d.forEach(function(it) {
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info div.list-fotter time.b2timeago&&Text;a&&href',
|
||||
搜索:`js:
|
||||
//'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info .post-list-cat&&Text;a&&href',
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let html = request(input);
|
||||
let d=[];
|
||||
let dlist = pdfa(html, '#primary-home ul li:has(img)');
|
||||
dlist.forEach(function(it){
|
||||
let title=pdfh(it, 'img&&alt');
|
||||
if (title.includes(KEY)){
|
||||
if (searchObj.quick === true){
|
||||
title = KEY;
|
||||
}
|
||||
let img='http://127.0.0.1:10079/i/0/s/' + pd(it, 'img&&src',HOST);
|
||||
let content=pdfh(it, 'div.text_info h2&&Text');
|
||||
let url=pd(it, 'a&&href', HOST);
|
||||
let desc=pdfh(it, 'p.info&&Text');
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
}
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
||||
|
||||
@@ -27,7 +27,7 @@ var rule = {
|
||||
headers:{
|
||||
'User-Agent':'PC_UA',
|
||||
"Referer": "https://www.bilibili.com",
|
||||
"Cookie":"$bili_cookie"
|
||||
"Cookie":"http://127.0.0.1:9978/file/tvfan/cookie.txt"
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'番剧&国创&电影&电视剧&纪录片&综艺&全部&追番&追剧&时间表',
|
||||
|
||||
@@ -58,7 +58,7 @@ var rule = {
|
||||
"User-Agent":"PC_UA",
|
||||
"Referer": "https://www.bilibili.com",
|
||||
// "Cookie":"$bili_cookie"
|
||||
"Cookie":"https://ghproxy.net/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/txt/cookie.txt"
|
||||
"Cookie":"http://127.0.0.1:9978/file/tvfan/cookie.txt"
|
||||
},
|
||||
timeout:5000,
|
||||
limit:8,
|
||||
|
||||
@@ -105,7 +105,7 @@ var rule = {
|
||||
"Referer": "https://www.bilibili.com",
|
||||
// "Cookie":"$bili_cookie"
|
||||
// "Cookie":"https://ghproxy.net/https://github.com/FongMi/CatVodSpider/raw/main/txt/cookie.txt"
|
||||
"Cookie":"https://ghproxy.net/https://raw.githubusercontent.com/FongMi/CatVodSpider/main/txt/cookie.txt"
|
||||
"Cookie":"http://127.0.0.1:9978/file/tvfan/cookie.txt"
|
||||
},
|
||||
timeout:5000,
|
||||
limit:8,
|
||||
|
||||
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