mirror of https://github.com/qist/tvbox
update PG & LF
This commit is contained in:
parent
04527238e0
commit
422bec1529
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider":"./jar/fm.jar;md5;abc8379065c48caa77e5f727f7dfc339",
|
||||
"spider":"./jar/fm.jar;md5;e5c0ef48516dff5022ded2d3aaed8cdc",
|
||||
"lives":[{"name":"初秋语•综合","type":0,"url":"./list.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
|
||||
{"name":"Ray•综合","type":0,"url":"https://xhdwc.tk/tvlive.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo":"https://epg.112114.xyz/logo/{name}.png"},
|
||||
{"name":"俊于•综合","type":0,"url":"http://home.jundie.top:81/Cat/tv/live.txt","playerType":1,"epg":"http://epg.112114.xyz/?ch={name}&date={date}","logo": "https://epg.112114.xyz/logo/{name}.png"}],
|
||||
|
@ -29,6 +29,7 @@
|
|||
{"key":"drpy_js_磁力熊p","name":"磁力熊p*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/cilixiongp.js","searchable":0,"quickSearch":0,"changeable":1},
|
||||
{"key":"drpy_js_xb6v","name":"新版6v*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/xb6v.js","playerType":"1", "searchable":1, "quickSearch":1, "changeable":1},
|
||||
{"key":"drpy_js_美剧迷","name":"美剧迷*","type":3,"api":"./lib/drpy2.min.js","ext":"./js/meijumi.js", "quickSearch":1, "changeable":1,"timeout":60000},
|
||||
{"key":"drpy_js_kkpans","name":"kkpans","type":3,"api":"./lib/drpy2.min.js","ext":"./js/kkpans.js", "quickSearch":1, "changeable":1,"timeout":60000},
|
||||
{"key": "push_quark","name": "推送quark","type": 3,"api": "csp_Quark","changeable":0,"ext": "http://127.0.0.1:9978/file/tvfan/quark.txt"},
|
||||
|
||||
{"key":"csp_DiDuan" ,"name":"低端","type":3,"api":"csp_Ddys","searchable":1,"quickSearch":1,"changeable":1,"ext":"$$$socks5://192.168.5.227:4592"},
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
{
|
||||
"spider":"./jar/fm.nogo.jar;md5;2113f0dce1490996e54247ca3976b573",
|
||||
"spider":"./jar/fm.nogo.jar;md5;4edc2f4ba12dd6d5f1a9afcb7631af0f",
|
||||
"lives":[{"name":"初秋语","type":0,"url":"./listx.txt"},
|
||||
{"name":"YanG","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u"},
|
||||
{"name":"atsushi","type":0,"url":"https://ghproxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u"},
|
||||
|
|
BIN
jar/fm.jar
BIN
jar/fm.jar
Binary file not shown.
BIN
jar/fm.nogo.jar
BIN
jar/fm.nogo.jar
Binary file not shown.
|
@ -137,7 +137,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=' + KEY;
|
||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let postData = {
|
||||
body: params
|
||||
|
|
|
@ -210,7 +210,7 @@ delete(_fetch_params.headers['Content-Type']);
|
|||
Object.assign(_fetch_params, postData);
|
||||
log("dygang search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = request( HOST + '/e/search/index123.php', _fetch_params, true);
|
||||
log("dygang search result>>>>>>>>>>>>>>>" + search_html);
|
||||
//log("dygang search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'table.border1');
|
||||
dlist.forEach(function(it){
|
||||
|
|
|
@ -174,7 +174,7 @@ listq.forEach(function(it){
|
|||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let search_html=request(HOST + rule.homeUrl + '/?s=' + KEY, _fetch_params);
|
||||
let search_html=request(HOST + rule.homeUrl + '/?s=' + encodeURIComponent(KEY), _fetch_params);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'h2');
|
||||
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||
|
|
|
@ -174,7 +174,7 @@ listq.forEach(function(it){
|
|||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let search_html=request(HOST + rule.homeUrl + '/?s=' + KEY, _fetch_params);
|
||||
let search_html=request(HOST + rule.homeUrl + '/?s=' + encodeURIComponent(KEY), _fetch_params);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'h2');
|
||||
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||
|
|
|
@ -0,0 +1,140 @@
|
|||
var rule = {
|
||||
title:'KK網盤[磁]',
|
||||
host:'https://www.kkpans.com',
|
||||
homeUrl:'/',
|
||||
url: '/forum-fyclass-fypage.html?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/search',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'MOBILE_UA',
|
||||
'Referer': 'https://www.kkpans.com/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'国外电影&国外电视剧&纪录片资源&综艺资源&动漫资源&音乐资源',
|
||||
class_url:'39&40&41&42&46&43',
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'',
|
||||
一级:'',
|
||||
一级:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = [];
|
||||
let html = request(input);
|
||||
let list = pdfa(html, 'div.threadlist ul li.list');
|
||||
list.forEach(function(it) {
|
||||
d.push({
|
||||
title: pdfh(it, 'div.threadlist_tit&&Text'),
|
||||
desc: pdfh(it, 'div.threadlist_top div:has(>h3) span&&Text'),
|
||||
pic_url: '',
|
||||
url: pd(it, 'li.list&&a[href^="forum.php"]:eq(1)&&href', HOST)
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
二级:{
|
||||
title:"div.viewthread&&div.view_tit&&Text",
|
||||
img:"div.viewthread div.message&&img&&src",
|
||||
desc:"div.viewthread div.message&&Text",
|
||||
content:"div.viewthread div.message&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]');
|
||||
let index = 1;
|
||||
d.forEach(function(it) {
|
||||
TABS.push("夸克雲盤" + index);
|
||||
index = index + 1;
|
||||
});
|
||||
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
LISTS=[];
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]');
|
||||
let index = 1;
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (d.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);
|
||||
}
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
LISTS.push([title + '$' + burl]);
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
|
||||
let new_html=request(HOST + '/search.php?mod=forum', {withHeaders:true});
|
||||
let json=JSON.parse(new_html);
|
||||
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
||||
let cookie="";
|
||||
if (typeof setCk !== "undefined"){
|
||||
let d=[];
|
||||
for(const key in json[setCk]){
|
||||
if (typeof json[setCk][key] === "string"){
|
||||
log("kkpans header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key]));
|
||||
d.push(json[setCk][key].split(";")[0]);
|
||||
}
|
||||
}
|
||||
cookie=d.join(";");
|
||||
}
|
||||
fetch_params.headers.Cookie=cookie;
|
||||
rule_fetch_params.headers.Cookie=cookie;
|
||||
log('kkpans search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
||||
log('kkpans search body >>>>>>>>>>>>>>>>>>>>>' + json['body']);
|
||||
|
||||
new_html = json['body'];
|
||||
|
||||
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
|
||||
log("kkpans formhash>>>>>>>>>>>>>>>" + formhash);
|
||||
let params = 'formhash=' + formhash + '&searchsubmit=yes&srchtxt=' + encodeURIComponent(KEY);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let postData = {
|
||||
body: params
|
||||
};
|
||||
Object.assign(_fetch_params, postData);
|
||||
log("kkpans search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = post( HOST + '/search.php?mod=forum', _fetch_params)
|
||||
//log("kkpans search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'div.threadlist ul li.list');
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'div.threadlist_tit&&Text');
|
||||
if (searchObj.quick === true){
|
||||
if (title.includes(KEY)){
|
||||
title = KEY;
|
||||
}
|
||||
}
|
||||
let img = "";
|
||||
let content = pdfh(it, 'div.threadlist_top div:has(>h3) span&&Text');
|
||||
let desc = pdfh(it, 'div.threadlist_top div:has(>h3) span&&Text');
|
||||
let url = pd(it, 'a[href^="forum.php?mod=viewthread"]&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
|
@ -135,7 +135,7 @@ if (rule_fetch_params.headers.Cookie.startsWith("http")){
|
|||
log('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = request( HOST + '/search/' + KEY + '-1.html', _fetch_params)
|
||||
let search_html = request( HOST + '/search/' + encodeURIComponent(KEY) + '-1.html', _fetch_params)
|
||||
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
|
||||
|
|
|
@ -238,7 +238,7 @@ delete(_fetch_params.headers['Content-Type']);
|
|||
Object.assign(_fetch_params, postData);
|
||||
log("xb6v search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||
let search_html = request( HOST + '/e/search/index.php', _fetch_params, true);
|
||||
log("xb6v search result>>>>>>>>>>>>>>>" + search_html);
|
||||
//log("xb6v search result>>>>>>>>>>>>>>>" + search_html);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li');
|
||||
dlist.forEach(function(it){
|
||||
|
|
File diff suppressed because one or more lines are too long
Loading…
Reference in New Issue