update PG

This commit is contained in:
chuqiuyu 2023-08-15 12:39:14 +08:00
parent 396591e450
commit e7b8c6e431
7 changed files with 129 additions and 35 deletions

View File

@ -1,5 +1,5 @@
{ {
"spider":"./jar/fm.jar;md5;bf669f1427b7e449880e7b6c7aee8637", "spider":"./jar/fm.jar;md5;49ed0796ee40712edc77dce65aac2ec8",
"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"}, "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":"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"}], {"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"}],

View File

@ -1,5 +1,5 @@
{ {
"spider":"./jar/fm.nogo.jar;md5;24d06b2deb05926551337b702fe566de", "spider":"./jar/fm.nogo.jar;md5;fc75c4ce2f46da24a421b8f9680cfefc",
"lives":[{"name":"初秋语","type":0,"url":"./listx.txt"}, "lives":[{"name":"初秋语","type":0,"url":"./listx.txt"},
{"name":"YanG","type":0,"url":"https://gh-proxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u"}, {"name":"YanG","type":0,"url":"https://gh-proxy.com/https://raw.githubusercontent.com/YanG-1989/m3u/main/Adult.m3u"},
{"name":"atsushi","type":0,"url":"https://gh-proxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u"}, {"name":"atsushi","type":0,"url":"https://gh-proxy.com/https://raw.githubusercontent.com/atsushi444/iptv-epg/main/Adult.m3u"},

Binary file not shown.

Binary file not shown.

View File

@ -12,12 +12,19 @@ var rule = {
filterable:0, filterable:0,
headers:{ headers:{
'User-Agent': 'PC_UA', 'User-Agent': 'PC_UA',
'Cookie':'hvLw_2132_saltkey=x89cF7aD; hvLw_2132_lastvisit=1691840602; hvLw_2132_visitedfid=2; hvLw_2132_sendmail=1; _clck=hvltzs|2|fe4|0|1234; hvLw_2132_seccodecS=5681.04cfefe37df21abe97; hvLw_2132_ulastactivity=1691933173%7C0; hvLw_2132_auth=e9f3f37HqkcIBFlhm8r%2FqsQJNVKy9x1%2BRzROV4QROggK5CuZMQ3pmPzm9JwrPr%2FCkV7PzN7Nvt0yW1yEQXQjasm3AQ; hvLw_2132_sid=0; hvLw_2132_st_t=99213%7C1691933177%7C1fa4611ff255a89678127a126372871e; hvLw_2132_forum_lastvisit=D_2_1691933177; hvLw_2132_lastact=1691933194%09search.php%09forum; _clsk=fhws28|1691933195886|4|1|r.clarity.ms/collect', 'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/4khdr.txt',
}, },
timeout:5000, timeout:5000,
class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印", class_name: "4K电影&4K美剧&4K华语&4K动画&4K纪录片&4K日韩印&蓝光电影&蓝光美剧&蓝光华语&蓝光动画&蓝光日韩印",
class_url:"3&8&15&6&11&4&29&31&33&32&34", class_url:"3&8&15&6&11&4&29&31&33&32&34",
play_parse:false, play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'', lazy:'',
limit:6, limit:6,
推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', 推荐:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
@ -30,6 +37,7 @@ var rule = {
tabs:`js: tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd; pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[] TABS=[]
// log("4khdr 二级 html>>>>>>>>>>" + html);
var d = pdfa(html, 'table.t_table'); var d = pdfa(html, 'table.t_table');
let magnetIndex=0; let magnetIndex=0;
let aliIndex=0; let aliIndex=0;
@ -51,7 +59,7 @@ var rule = {
TABS.push(result); TABS.push(result);
} }
}); });
log('TABS >>>>>>>>>>>>>>>>>>' + TABS); log('4khdr TABS >>>>>>>>>>>>>>>>>>' + TABS);
`, `,
lists:`js: lists:`js:
log(TABS); log(TABS);
@ -103,18 +111,56 @@ var rule = {
}, },
一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href', 一级:'ul#waterfall li;a&&title;img&&src;div.auth.cl&&Text;a&&href',
搜索:'div#threadlist ul li;h3&&Text;;p:eq(3)&&Text;a&&href;p:eq(2)&&Text', 搜索:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
if (rule_fetch_params.headers.Cookie.startsWith("http")){
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
let cookie = rule_fetch_params.headers.Cookie;
setItem(RULE_CK, cookie);
};
log('4khdr search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
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 _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
let postData = {
body: params
};
Object.assign(_fetch_params, postData);
log("4khdr search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
let search_html = post( HOST + '/search.php', _fetch_params)
//log("4khdr search result>>>>>>>>>>>>>>>" + search_html);
let d=[];
let dlist = pdfa(search_html, 'div#threadlist ul li');
dlist.forEach(function(it){
let title = pdfh(it, 'h3&&Text');
if (searchObj.quick === true){
if (title.includes(KEY)){
title = KEY;
}
}
let img = "";
let content = pdfh(it, 'p:eq(3)&&Text');
let desc = pdfh(it, 'p:eq(2)&&Text');
let url = pd(it, 'a&&href', HOST);
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
});
setResult(d);
`,
预处理:` 预处理:`
if (rule_fetch_params.headers.Cookie.startsWith("http")){ if (rule_fetch_params.headers.Cookie.startsWith("http")){
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie); rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
setItem(RULE_CK,cookie); let cookie = rule_fetch_params.headers.Cookie;
setItem(RULE_CK, cookie);
}; };
log('4khdr cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie); log('4khdr init cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
let new_host='https://www.4khdr.cn/search.php';
let new_html=request(new_host);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let formhash = pdfh(new_html, 'input[name="formhash"]&&value');
log("formhash>>>>>>>>>>>>>>>" + formhash);
rule_fetch_params.formhash = formhash;
`, `,
} }

View File

@ -1,19 +1,19 @@
var rule = { var rule = {
title:'电影港[磁]', title:'电影港[磁]',
编码:'gb2312', 编码:'gb2312',
搜索编码:'gb2312',
host:'https://www.dygang.tv', host:'https://www.dygang.tv',
homeUrl:'/', homeUrl:'/',
url: '/fyclass/index_fypage.htm?', url: '/fyclass/index_fypage.htm?',
filter_url:'{{fl.class}}', filter_url:'{{fl.class}}',
filter:{ filter:{
}, },
searchUrl: '/e/search/index.php#tbname=article&show=title,smalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post', searchUrl: '/e/search/index.php#tbname=article&show=title%2Csmalltext&tempid=1&Submit=%CB%D1%CB%F7&keyboard=**;post',
searchable:2, searchable:2,
quickSearch:1, quickSearch:0,
filterable:0, filterable:0,
headers:{ headers:{
'User-Agent': 'PC_UA', 'User-Agent': 'PC_UA'
'Referer': 'https://www.dygang.tv/'
}, },
timeout:5000, timeout:5000,
class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题', class_name:'最新电影&经典高清&国配电影&经典港片&国剧&日韩剧&美剧&综艺&动漫&纪录片&高清原盘&4K高清区&3D电影&电影专题',
@ -74,13 +74,15 @@ var rule = {
}, },
搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt', 搜索:'table.border1;img&&alt;img&&src;img&&alt;a&&href;img&&alt',
预处理:` 预处理:`
let new_host=HOST; let new_host=HOST+'/';
let new_html=request(new_host, {withHeaders:true}); let new_html=request(new_host, {withHeaders:true});
let json=JSON.parse(new_html); let json=JSON.parse(new_html);
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie"); let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
let cookie=setCk?json[setCk].split(";")[0]:""; let cookie=setCk?json[setCk].split(";")[0]:"";
log("cookie:"+cookie); log("dygang cookie:"+cookie);
rule_fetch_params.headers.Cookie=cookie; if (cookie !== ""){
setItem(RULE_CK,cookie); rule_fetch_params.headers.Cookie=cookie;
setItem(RULE_CK,cookie);
}
`, `,
} }

View File

@ -6,18 +6,25 @@ var rule = {
filter_url:'{{fl.class}}', filter_url:'{{fl.class}}',
filter:{ filter:{
}, },
searchUrl: '/search/#nobot=1&wd=**;post', searchUrl: '/search/**-1.html',
searchable:2, searchable:2,
quickSearch:1, quickSearch:0,
filterable:0, filterable:0,
headers:{ headers:{
'User-Agent': 'PC_UA', 'User-Agent': 'PC_UA',
'Referer': 'https://www.mp4us.com/', 'Cookie':''
}, },
timeout:5000, timeout:5000,
class_name: '动作片&科幻片&爱情片&喜剧片&恐怖片&战争片&剧情片&纪录片&动画片&电视剧', class_name: '动作片&科幻片&爱情片&喜剧片&恐怖片&战争片&剧情片&纪录片&动画片&电视剧',
class_url: '1&2&3&4&5&6&7&8&9&10', class_url: '1&2&3&4&5&6&7&8&9&10',
play_parse:false, play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'', lazy:'',
limit:6, limit:6,
推荐:'div.index_update ul li;a&&Text;;b&&Text;a&&href', 推荐:'div.index_update ul li;a&&Text;;b&&Text;a&&href',
@ -101,15 +108,54 @@ var rule = {
`, `,
}, },
搜索:'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text', 搜索bak:'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
搜索:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
if (rule_fetch_params.headers.Cookie.startsWith("http")){
rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
let cookie = rule_fetch_params.headers.Cookie;
setItem(RULE_CK, cookie);
};
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)
//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',
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 (title.includes(KEY)){
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
})
});
setResult(d);
`,
预处理:` 预处理:`
let new_host=HOST; if (rule_fetch_params.headers.Cookie.startsWith("http")){
let new_html=request(new_host, {withHeaders:true}); rule_fetch_params.headers.Cookie=fetch(rule_fetch_params.headers.Cookie);
let json=JSON.parse(new_html); let cookie = rule_fetch_params.headers.Cookie;
let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie"); setItem(RULE_CK, cookie);
let cookie=setCk?json[setCk].split(";")[0]:""; };
log("cookie:"+cookie); log('mp4us init cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
rule_fetch_params.headers.Cookie=cookie; `,
setItem(RULE_CK,cookie); proxy_url_bak: `js:
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
let proxy_html = request( 'http://127.0.0.1:10079/?thread=0&proxy=socks5://192.168.101.1:1080&url=' + encodeURIComponent(input), _fetch_params);
input = [200, "text/html", proxy_html];
`, `,
} }