mirror of https://github.com/qist/tvbox.git
parent
9ae85da093
commit
56c092c965
@ -0,0 +1,71 @@
|
|||||||
|
{
|
||||||
|
"规则名": "农民影视",
|
||||||
|
"规则作者": "香雅情",
|
||||||
|
"请求头参数": "User-Agent$手机#accept$text/html#Referer$https://vip.wwgz.cn:5200/",
|
||||||
|
"网页编码格式": "UTF-8",
|
||||||
|
"图片是否需要代理": "0",
|
||||||
|
"是否开启获取首页数据": "1",
|
||||||
|
"首页推荐链接": "https://vip.wwgz.cn:5200/",
|
||||||
|
"首页列表数组规则": "body&&.globalPicList",
|
||||||
|
"首页片单列表数组规则": "li:has(img)",
|
||||||
|
"首页片单是否Jsoup写法": "1",
|
||||||
|
"首页片单标题": ".sTit&&Text",
|
||||||
|
"首页片单链接": "a&&href",
|
||||||
|
"首页片单图片": "img&&data-echo||data-src||src",
|
||||||
|
"首页片单副标题": ".sBottom&&Text",
|
||||||
|
"首页片单链接加前缀": "https://vip.wwgz.cn:5200/",
|
||||||
|
"首页片单链接加后缀": "",
|
||||||
|
"分类起始页码": "1",
|
||||||
|
"分类链接": "https://vip.wwgz.cn:5200/vod-list-id-{cateId}-pg-{catePg}-order--by-{by}-class--year-{year}-letter--area-{area}-lang-.html",
|
||||||
|
"分类名称": "电影&电视剧&综艺&动漫&短剧",
|
||||||
|
"分类名称替换词": "1&2&3&4&26",
|
||||||
|
"筛选数据": "ext",
|
||||||
|
"筛选子分类名称": "动作片&喜剧片&爱情片&科幻片&恐怖片&剧情片&战争片&惊悚片&奇幻片||国产剧&港台泰&日韩剧&欧美剧||空||动漫剧&动漫片",
|
||||||
|
"筛选子分类替换词": "5&6&7&8&9&10&11&16&17||12&13&14&15||空||18&19",
|
||||||
|
"筛选地区名称": "大陆&香港&台湾&美国&韩国&日本&泰国&新加坡&马来西亚&印度&英国&法国&加拿大&西班牙&俄罗斯&其它",
|
||||||
|
"筛选地区替换词": "*",
|
||||||
|
"分类截取模式": "1",
|
||||||
|
"分类列表数组规则": ".globalPicList&&li",
|
||||||
|
"分类片单是否Jsoup写法": "1",
|
||||||
|
"分类片单标题": ".sTit&&Text",
|
||||||
|
"分类片单链接": "a&&href",
|
||||||
|
"分类片单图片": "img&&data-echo||data-src||src",
|
||||||
|
"分类片单副标题": ".sBottom&&Text",
|
||||||
|
"分类片单链接加前缀": "https://vip.wwgz.cn:5200/",
|
||||||
|
"分类片单链接加后缀": "",
|
||||||
|
"搜索请求头参数": "User-Agent$手机#Referer$https://vip.wwgz.cn:5200/",
|
||||||
|
"search_url": "https://vip.wwgz.cn:5200/index.php?m=vod-search;post",
|
||||||
|
"sea_PtBody": "wd={wd}",
|
||||||
|
"search_mode": "1",
|
||||||
|
"sea_arr_rule": "#data_list&&li",
|
||||||
|
"sea_is_jsoup": "1",
|
||||||
|
"sea_pic": ".lazyload&&data-src",
|
||||||
|
"sea_title": ".sTit&&Text",
|
||||||
|
"sea_url": "a&&href",
|
||||||
|
"搜索片单副标题": ".sDes,-1&&Text",
|
||||||
|
"搜索片单链接加前缀": "https://vip.wwgz.cn:5200/",
|
||||||
|
"搜索片单链接加后缀": "",
|
||||||
|
"链接是否直接播放": "0",
|
||||||
|
"直接播放链接加前缀": "https://live.52sf.ga/huya/",
|
||||||
|
"直接播放链接加后缀": "#isVideo=true#",
|
||||||
|
"直接播放直链视频请求头": "authority$ku.peizq.online#Referer$https://play.peizq.online",
|
||||||
|
"详情是否Jsoup写法": "1",
|
||||||
|
"类型详情": ".type-title&&Text",
|
||||||
|
"年代详情": "body&&span:contains(年代:)&&Text!年代:",
|
||||||
|
"地区详情": "",
|
||||||
|
"演员详情": "body&&.sDes:contains(主演:)&&Text!主演:",
|
||||||
|
"简介详情": ".detail-con&&p&&Text!简介:",
|
||||||
|
"线路列表数组规则": "#leftTabBox&&ul&&li",
|
||||||
|
"播放列表数组规则": "#leftTabBox&&.numList",
|
||||||
|
"选集列表数组规则": "li",
|
||||||
|
"选集标题链接是否Jsoup写法": "1",
|
||||||
|
"选集标题": "a&&Text",
|
||||||
|
"选集链接": "a&&href",
|
||||||
|
"是否反转选集序列": "1",
|
||||||
|
"选集链接加前缀": "https://vip.wwgz.cn:5200/",
|
||||||
|
"选集链接加后缀": "",
|
||||||
|
"分析MacPlayer": "0",
|
||||||
|
"是否开启手动嗅探": "1",
|
||||||
|
"手动嗅探视频链接关键词": ".mp4#.m3u8#item/video#video_mp4#video/tos",
|
||||||
|
"手动嗅探视频链接过滤词": ".html#=http"
|
||||||
|
}
|
||||||
@ -0,0 +1,102 @@
|
|||||||
|
var rule = {
|
||||||
|
title:'人人影视[搜]',
|
||||||
|
host:'https://yyets.click',
|
||||||
|
homeUrl:'/',
|
||||||
|
url:'*',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '*',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': PC_UA,
|
||||||
|
'Accept': '*/*',
|
||||||
|
'Referer': 'https://yyets.click/',
|
||||||
|
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/yyets.txt',
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name:'',
|
||||||
|
class_url:'',
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'',
|
||||||
|
一级:'',
|
||||||
|
二级:`js:
|
||||||
|
VOD.vod_play_from = "人人分享站";
|
||||||
|
VOD.vod_remarks = detailUrl;
|
||||||
|
VOD.vod_actor = "沒有二级,只有一级链接直接推送播放";
|
||||||
|
VOD.vod_content = MY_URL;
|
||||||
|
VOD.vod_play_url = "人人分享站$" + detailUrl;
|
||||||
|
`,
|
||||||
|
搜索:`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('yyets search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
_fetch_params.headers.Referer = 'http://yyets.click/search?keyword=' + encodeURIComponent(KEY) + '&type=default';
|
||||||
|
log('yyets search params>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
|
||||||
|
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default', _fetch_params);
|
||||||
|
//log("yyets search result>>>>>>>>>>>>>>>" + new_html);
|
||||||
|
let json=JSON.parse(new_html);
|
||||||
|
let d=[];
|
||||||
|
for(const it in json.comment){
|
||||||
|
if (json.comment.hasOwnProperty(it)){
|
||||||
|
log("yyets search it>>>>>>>>>>>>>>>" + JSON.stringify(json.comment[it]));
|
||||||
|
if (/(www.aliyundrive.com|pan.quark.cn|www.alipan.com)/.test(json.comment[it].comment)){
|
||||||
|
let its = json.comment[it].comment.split("\\n");
|
||||||
|
let i=0;
|
||||||
|
while(i<its.length){
|
||||||
|
let title=its[i].trim().replaceAll(/\\s+/g," ");
|
||||||
|
if (title.length==0){
|
||||||
|
i++;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
let urls=[];
|
||||||
|
log("yyets search title>>>>>>>>>>>>>>>" + title);
|
||||||
|
while(++i<its.length){
|
||||||
|
log("yyets search url>>>>>>>>>>>>>>>" + its[i]);
|
||||||
|
let burl = its[i].trim().split(" ")[0];
|
||||||
|
if (burl.length==0){
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
if (burl.includes("https://")){
|
||||||
|
urls.push("https:"+burl.split("https:")[1]);
|
||||||
|
}else{
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
if (urls.length>0){
|
||||||
|
log("yyets search title,urls>>>>>>>>>>>>>>>" + title + ",[" + JSON.stringify(urls) + "]");
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
urls.forEach(function (url) {
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:'',
|
||||||
|
content:json.comment[it].comment,
|
||||||
|
desc:json.comment[it].date,
|
||||||
|
url:'push://'+url
|
||||||
|
});
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
||||||
@ -0,0 +1,120 @@
|
|||||||
|
var rule = {
|
||||||
|
title: '人人电影网',
|
||||||
|
host: 'https://www.rrdynb.com',
|
||||||
|
homeUrl: '/',
|
||||||
|
url: '/fyclass_fypage.html?',
|
||||||
|
filter_url: '{{fl.class}}',
|
||||||
|
filter: {},
|
||||||
|
searchUrl: '/plus/search.php?q=**&pagesize=10&submit=',
|
||||||
|
searchable: 2,
|
||||||
|
quickSearch: 1,
|
||||||
|
filterable: 0,
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Cookie': ''
|
||||||
|
},
|
||||||
|
timeout: 5000,
|
||||||
|
class_name: '影视&电视剧&老电影&动漫',
|
||||||
|
class_url: 'movie/list_2&dianshiju/list_6&zongyi/list_10&dongman/list_13',
|
||||||
|
play_parse: true,
|
||||||
|
play_json: [{
|
||||||
|
re: '*',
|
||||||
|
json: {
|
||||||
|
parse: 0,
|
||||||
|
jx: 0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy: "js:\n input = 'push://' + input;\n ",
|
||||||
|
limit: 6,
|
||||||
|
推荐: '',
|
||||||
|
一级: 'li:has(img);img&&alt;img&&data-original;;a&&href',
|
||||||
|
二级: {
|
||||||
|
title: "h1&&Text",
|
||||||
|
img: "img&&src",
|
||||||
|
desc: "",
|
||||||
|
content: "span&&Text",
|
||||||
|
tabs: `js: pdfh = jsp.pdfh;
|
||||||
|
pdfa = jsp.pdfa;
|
||||||
|
pd = jsp.pd;
|
||||||
|
TABS = []
|
||||||
|
let d = pdfa(html, 'span a');
|
||||||
|
let tabsa = [];
|
||||||
|
let tabsq = [];
|
||||||
|
let tabsm = false;
|
||||||
|
let tabse = false;
|
||||||
|
d.forEach(function(it) {
|
||||||
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
if (burl.startsWith("https://pan.quark.cn/s/")) {
|
||||||
|
tabsq.push("夸克网盘");
|
||||||
|
} else if (burl.startsWith("magnet")) {
|
||||||
|
tabsm = true;
|
||||||
|
} else if (burl.startsWith("ed2k")) {
|
||||||
|
tabse = true;
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (tabsm === true) {
|
||||||
|
TABS.push("磁力");
|
||||||
|
}
|
||||||
|
if (tabse === true) {
|
||||||
|
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('alyps TABS >>>>>>>>>>>>>>>>>>' + TABS);`,
|
||||||
|
lists: `js: log(TABS);
|
||||||
|
pdfh = jsp.pdfh;
|
||||||
|
pdfa = jsp.pdfa;
|
||||||
|
pd = jsp.pd;
|
||||||
|
LISTS = [];
|
||||||
|
let d = pdfa(html, 'span a');
|
||||||
|
let lista = [];
|
||||||
|
let listq = [];
|
||||||
|
let listm = [];
|
||||||
|
let liste = [];
|
||||||
|
d.forEach(function(it) {
|
||||||
|
let burl = pdfh(it, 'a&&href');
|
||||||
|
let title = pdfh(it, 'a&&Text');
|
||||||
|
log('alyps title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
|
log('alyps burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
|
let loopresult = title + '$' + burl;
|
||||||
|
if (burl.startsWith("https://pan.quark.cn/s/")) {
|
||||||
|
if (TABS.length == 1) {
|
||||||
|
burl = burl.replace("?entry=sjss", ""),
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||||
|
} else {
|
||||||
|
burl = burl.replace("?entry=sjss", ""),
|
||||||
|
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(burl);
|
||||||
|
}
|
||||||
|
loopresult = title + '$' + burl;
|
||||||
|
listq.push(loopresult);
|
||||||
|
} else if (burl.startsWith("magnet")) {
|
||||||
|
listm.push(loopresult);
|
||||||
|
} else if (burl.startsWith("ed2k")) {
|
||||||
|
liste.push(loopresult);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (listm.length > 0) {
|
||||||
|
LISTS.push(listm.reverse());
|
||||||
|
}
|
||||||
|
if (liste.length > 0) {
|
||||||
|
LISTS.push(liste.reverse());
|
||||||
|
}
|
||||||
|
lista.forEach(function(it) {
|
||||||
|
LISTS.push([it]);
|
||||||
|
});
|
||||||
|
listq.forEach(function(it) {
|
||||||
|
LISTS.push([it]);
|
||||||
|
});`,
|
||||||
|
|
||||||
|
},
|
||||||
|
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
|
||||||
|
}
|
||||||
Binary file not shown.
Loading…
Reference in new issue