mirror of
https://github.com/alantang1977/X.git
synced 2025-01-23 22:23:09 +02:00
Add files via upload
This commit is contained in:
parent
fb247d4df6
commit
1eaca424b8
5 changed files with 702 additions and 2 deletions
61
js/cilixiongp.js
Normal file
61
js/cilixiongp.js
Normal file
|
@ -0,0 +1,61 @@
|
|||
var rule = {
|
||||
title:'磁力熊[磁]',
|
||||
//host:'https://www.cilixiong.com',
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclassfyfilter-(fypage-1).html',
|
||||
host:'http://127.0.0.1:10079',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com',
|
||||
url:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/fyclassfyfilter-(fypage-1).html',
|
||||
filter_url:'-{{fl.class or "0"}}-{{fl.area or "0"}}',
|
||||
filter:{
|
||||
"1":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}],
|
||||
"2":[{"key":"class","name":"类型","value":[{"n":"全部","v":"0"},{"n":"剧情","v":"1"},{"n":"喜剧","v":"2"},{"n":"惊悚","v":"3"},{"n":"动作","v":"4"},{"n":"爱情","v":"5"},{"n":"犯罪","v":"6"},{"n":"恐怖","v":"7"},{"n":"冒险","v":"8"},{"n":"悬疑","v":"9"},{"n":"科幻","v":"10"},{"n":"家庭","v":"11"},{"n":"奇幻","v":"12"},{"n":"动画","v":"13"},{"n":"战争","v":"14"},{"n":"历史","v":"15"},{"n":"传记","v":"16"},{"n":"音乐","v":"17"},{"n":"歌舞","v":"18"},{"n":"运动","v":"19"},{"n":"西部","v":"20"},{"n":"灾难","v":"21"},{"n":"古装","v":"22"},{"n":"情色","v":"23"},{"n":"同性","v":"24"},{"n":"儿童","v":"25"},{"n":"纪录片","v":"26"}]},{"key":"area","name":"地区","value":[{"n":"全部","v":"0"},{"n":"大陆","v":"1"},{"n":"香港","v":"2"},{"n":"台湾","v":"3"},{"n":"美国","v":"4"},{"n":"日本","v":"5"},{"n":"韩国","v":"6"},{"n":"英国","v":"7"},{"n":"法国","v":"8"},{"n":"德国","v":"9"},{"n":"印度","v":"10"},{"n":"泰国","v":"11"},{"n":"丹麦","v":"12"},{"n":"瑞典","v":"13"},{"n":"巴西","v":"14"},{"n":"加拿大","v":"15"},{"n":"俄罗斯","v":"16"},{"n":"意大利","v":"17"},{"n":"比利时","v":"18"},{"n":"爱尔兰","v":"19"},{"n":"西班牙","v":"20"},{"n":"澳大利亚","v":"21"},{"n":"波兰","v":"22"},{"n":"土耳其","v":"23"},{"n":"越南","v":"24"}]}]
|
||||
},
|
||||
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.cilixiong.com/e/search/index.php#classid=1,2&show=title&tempid=1&keyboard=**;post',
|
||||
searchable:0,
|
||||
quickSearch:0,
|
||||
filterable:1,
|
||||
headers:{
|
||||
'User-Agent': 'MOBILE_UA'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'电影&剧集&豆瓣电影Top250&IMDB Top250&高分悬疑片&高分喜剧片&高分传记片&高分爱情片&高分犯罪片&高分恐怖片&高分冒险片&高分武侠片&高分奇幻片&高分历史片&高分战争片&高分歌舞片&高分灾难片&高分情色片&高分西部片&高分音乐片&高分科幻片&高分动作片&高分动画片&高分纪录片&冷门佳片',
|
||||
class_url:'1&2&/top250/&/s/imdbtop250/&/s/suspense/&/s/comedy/&/s/biopic/&/s/romance/&/s/crime/&/s/horror/&/s/adventure/&/s/martial/&/s/fantasy/&/s/history/&/s/war/&/s/musical/&/s/disaster/&/s/erotic/&/s/west/&/s/music/&/s/sci-fi/&/s/action/&/s/animation/&/s/documentary/&/s/unpopular/',
|
||||
play_parse:false,
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐: `js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
var d = [];
|
||||
var html = request(input);
|
||||
var list = pdfa(html, 'body&&.col');
|
||||
list.forEach(it => {
|
||||
d.push({
|
||||
title: pdfh(it, 'h2&&Text'),
|
||||
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||
pic_url: pd(it, '.card-img&&style')
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
一级: `js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
var d = [];
|
||||
if (MY_CATE !== '1' && MY_CATE !== '2') {
|
||||
let turl = (MY_PAGE === 1)? 'index' : 'index_'+ MY_PAGE;
|
||||
input = rule.homeUrl + MY_CATE + turl + '.html';
|
||||
}
|
||||
var html = request(input);
|
||||
var list = pdfa(html, 'body&&.col');
|
||||
list.forEach(it => {
|
||||
d.push({
|
||||
title: pdfh(it, 'h2&&Text'),
|
||||
desc: pdfh(it, '.me-auto&&Text') + '分 / ' + pdfh(it, '.small&&Text'),
|
||||
pic_url: pdfh(it, '.card-img&&style')
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
二级:'',
|
||||
搜索:'',
|
||||
}
|
230
js/jiyingwp.js
Normal file
230
js/jiyingwp.js
Normal file
|
@ -0,0 +1,230 @@
|
|||
var rule = {
|
||||
title:'极影网[磁]',
|
||||
//host:'https://www.jiyingw.net',
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclass/page/fypage?',
|
||||
host:'http://127.0.0.1:10079',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net/',
|
||||
url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net/fyclass/page/fypage?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
"movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}]
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:1,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/jiyingw.txt',
|
||||
'Accept':'*/*',
|
||||
'Referer': 'https://www.jiyingw.net/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'电影&电视剧&动漫&综艺&影评',
|
||||
class_url:'movie&tv&cartoon&movie/variety&yingping',
|
||||
play_parse:true,
|
||||
play_json:[{
|
||||
re:'*',
|
||||
json:{
|
||||
parse:0,
|
||||
jx:0
|
||||
}
|
||||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
|
||||
一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
|
||||
二级:{
|
||||
title:"h1&&Text",
|
||||
img:"#post_content img&&src",
|
||||
desc:"#post_content&&Text",
|
||||
content:"#post_content&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
let tabsa = [];
|
||||
let tabsq = [];
|
||||
let tabsm = false;
|
||||
let tabse = false;
|
||||
let d = pdfa(html, '#post_content p a');
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
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;
|
||||
}
|
||||
});
|
||||
d = pdfa(html, 'div#down p.down-list3 a');
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
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;
|
||||
}
|
||||
});
|
||||
if (tabsm === true){
|
||||
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('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
let lista = [];
|
||||
let listq = [];
|
||||
let listm = [];
|
||||
let liste = [];
|
||||
let d = pdfa(html, '#post_content p a');
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('dygang 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")){
|
||||
listm.push(loopresult);
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
liste.push(loopresult);
|
||||
}
|
||||
});
|
||||
d = pdfa(html, 'div#down p.down-list3 a');
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('dygang 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")){
|
||||
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]);
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:`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('jiyingw search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||
let search_html=request(rule.homeUrl + '?s=' + encodeURIComponent(KEY), _fetch_params);
|
||||
let d=[];
|
||||
let dlist = pdfa(search_html, 'h2');
|
||||
log("jiyingw dlist.length>>>>>>>"+dlist.length);
|
||||
dlist.forEach(function(it){
|
||||
let title = pdfh(it, 'a&&title');
|
||||
//if (searchObj.quick === true){
|
||||
// title = KEY;
|
||||
//}
|
||||
let img = '';
|
||||
let content = title;
|
||||
let desc = title;
|
||||
let url = pd(it, 'a&&href', HOST);
|
||||
d.push({
|
||||
title:title,
|
||||
img:img,
|
||||
content:content,
|
||||
desc:desc,
|
||||
url:url
|
||||
})
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
}
|
307
js/meijumip.js
Normal file
307
js/meijumip.js
Normal file
|
@ -0,0 +1,307 @@
|
|||
var rule = {
|
||||
title:'美剧迷[磁]',
|
||||
//host:'https://www.meijumi.xyz',
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclass/page/fypage/?',
|
||||
host:'http://192.168.101.1:10078',
|
||||
homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/',
|
||||
url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/fyclass/page/fypage/?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Accept': '*/*',
|
||||
'Referer': 'https://www.meijumi.net/'
|
||||
},
|
||||
timeout:5000,
|
||||
class_name:'最近更新&美剧&灵异/惊悚&魔幻/科幻&罪案/动作谍战&剧情/历史&喜剧&律政/医务&动漫/动画&纪录片&综艺/真人秀&英剧&韩剧',
|
||||
class_url:'news&usa&usa/xuanyi&usa/mohuan&usa/zuian&usa/qinggan&usa/xiju&usa/yiwu&usa/katong&usa/jilu&usa/zongyi&en&hanju',
|
||||
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 items;
|
||||
items = pdfa(html, 'main#main div.hd ul li:has(>a>img)');
|
||||
items.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'li&&Text'),
|
||||
desc: '',
|
||||
pic_url: pd(it, 'img&&src', HOST),
|
||||
url: burl
|
||||
});
|
||||
});
|
||||
items = pdfa(html, 'main#main div.hd div.huandeng span:has(>a>img)');
|
||||
if (typeof items !== "undefined") {
|
||||
items.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'span&&Text'),
|
||||
desc: '',
|
||||
pic_url: pd(it, 'img&&src', HOST),
|
||||
url: burl
|
||||
});
|
||||
});
|
||||
}
|
||||
items = pdfa(html, 'main#main div#pingbi_gg div:has(>div>a>img)');
|
||||
if (typeof items !== "undefined") {
|
||||
items.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'a&&title'),
|
||||
desc: pdfh(it, 'div&&span b&&Text'),
|
||||
pic_url: pd(it, 'img&&src', HOST),
|
||||
url: burl
|
||||
});
|
||||
});
|
||||
}
|
||||
items = pdfa(html, 'main#main div#pingbi_gg div:has(>header>div>a)');
|
||||
if (typeof items !== "undefined") {
|
||||
items.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'header a&&Text'),
|
||||
desc: pdfh(it, 'header&&div span&&Text'),
|
||||
pic_url: pd(it, 'figure img&&src', HOST),
|
||||
url: burl
|
||||
});
|
||||
});
|
||||
}
|
||||
setResult(d);
|
||||
`,
|
||||
一级:'',
|
||||
一级:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = [];
|
||||
if (MY_CATE !== "news" ){
|
||||
let html = request(input);
|
||||
let list = pdfa(html, 'div#post_list_box article');
|
||||
list.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'header a&&Text'),
|
||||
desc: pdfh(it, 'div.entry-content span:eq(1)&&Text'),
|
||||
pic_url: pd(it, 'figure img&&src', HOST),
|
||||
url: burl
|
||||
});
|
||||
})
|
||||
}else{
|
||||
input = rule.homeUrl + MY_CATE + '/';
|
||||
let html = request(input);
|
||||
let list = pdfa(html, 'article ol&&li');
|
||||
list.forEach(it => {
|
||||
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
|
||||
d.push({
|
||||
title: pdfh(it, 'a&&Text'),
|
||||
desc: pdfh(it, 'li&&span:eq(3)&&Text') + ' / 更新' + pdfh(it, 'li&&span:eq(1)&&Text'),
|
||||
pic_url: '',
|
||||
url: burl
|
||||
});
|
||||
})
|
||||
}
|
||||
setResult(d);
|
||||
`,
|
||||
二级:{
|
||||
title:"article&&header&&h1&&Text",
|
||||
img:"article div.single-content img&&src",
|
||||
desc:"article div.single-content blockquote&&Text",
|
||||
content:"article div.single-content table&&Text",
|
||||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
let playGroups = [];
|
||||
let d = pdfa(html, 'article div.single-content&&p:has(>a)');
|
||||
d.forEach(function(it) {
|
||||
let playObj = {"ali":{},"quark":{},"magnet":{}};
|
||||
let playUrls = pdfa(it, 'a');
|
||||
let title="";
|
||||
playUrls.forEach(function(playUrl) {
|
||||
let purl = pdfh(playUrl, 'a&&href');
|
||||
if (true || title === ""){
|
||||
title = pdfh(playUrl, 'a&&Text');
|
||||
}
|
||||
if (purl.startsWith("magnet")){
|
||||
let magfn = title;
|
||||
try {
|
||||
magfn = purl.match(/(^|&)dn=([^&]*)(&|$)/)[2];
|
||||
}catch(e){
|
||||
magfn = title;
|
||||
}
|
||||
let resolution = "unknown";
|
||||
try {
|
||||
resolution = magfn.match(/(1080|720|2160|4k|4K)/)[1];
|
||||
}catch(e){
|
||||
resolution = "unknown";
|
||||
}
|
||||
magfn = resolution + "." + magfn;
|
||||
log("tabs magnet filename>>>>>>>>>>>" + magfn);
|
||||
playObj["magnet"][purl]=magfn;
|
||||
}else if (purl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
playObj["ali"][purl]=title;
|
||||
}else if (purl.startsWith("https://pan.quark.cn/s/")){
|
||||
playObj["quark"][purl]=title;
|
||||
}
|
||||
});
|
||||
playGroups.push(playObj);
|
||||
|
||||
});
|
||||
LISTS.push(playGroups);
|
||||
let groupIndex = 1;
|
||||
let haveDelay = false;
|
||||
playGroups.forEach(function (it) {
|
||||
let magCount = Object.keys(it["magnet"]).length;
|
||||
let aliCount = Object.keys(it["ali"]).length;
|
||||
let quarkCount = Object.keys(it["quark"]).length;
|
||||
let haveMag = false;
|
||||
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
|
||||
|
||||
}else{
|
||||
if (magCount>0){
|
||||
TABS.push("磁力" + groupIndex);
|
||||
haveMag = true;
|
||||
haveDelay = true;
|
||||
}
|
||||
if (aliCount === 1){
|
||||
if (false && !haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
TABS.push("阿里雲盤" + groupIndex);
|
||||
}
|
||||
if (quarkCount === 1){
|
||||
if (false && !haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
TABS.push("夸克雲盤" + groupIndex);
|
||||
}
|
||||
groupIndex = groupIndex + 1;
|
||||
}
|
||||
});
|
||||
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let playGroups = [];
|
||||
if (false && LISTS.length>0 && typeof LISTS[0] === "object"){
|
||||
playGroups = LISTS.shift();
|
||||
}else{
|
||||
let d = pdfa(html, 'article div.single-content&&p:has(>a)');
|
||||
d.forEach(function(it) {
|
||||
let playObj = {"ali":{},"quark":{},"magnet":{}};
|
||||
let playUrls = pdfa(it, 'a');
|
||||
let title="";
|
||||
playUrls.forEach(function(playUrl) {
|
||||
let purl = pdfh(playUrl, 'a&&href');
|
||||
if (true || title === ""){
|
||||
title = pdfh(playUrl, 'a&&Text');
|
||||
}
|
||||
if (purl.startsWith("magnet")){
|
||||
let magfn = title;
|
||||
try {
|
||||
magfn = purl.match(/(^|&)dn=([^&]*)(&|$)/)[2];
|
||||
}catch(e){
|
||||
magfn = title;
|
||||
}
|
||||
let resolution = "unknown";
|
||||
try {
|
||||
resolution = magfn.match(/(1080|720|2160|4k|4K)/)[1];
|
||||
}catch(e){
|
||||
resolution = "unknown";
|
||||
}
|
||||
magfn = resolution + "." + magfn;
|
||||
log("tabs magnet filename>>>>>>>>>>>" + magfn);
|
||||
playObj["magnet"][purl]=magfn;
|
||||
}else if (purl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
playObj["ali"][purl]=title;
|
||||
}else if (purl.startsWith("https://pan.quark.cn/s/")){
|
||||
playObj["quark"][purl]=title;
|
||||
}
|
||||
});
|
||||
playGroups.push(playObj);
|
||||
|
||||
});
|
||||
}
|
||||
LISTS = [];
|
||||
let haveDelay = false;
|
||||
playGroups.forEach(function(it){
|
||||
let haveMag = false;
|
||||
if (Object.keys(it["magnet"]).length>0){
|
||||
haveMag = true;
|
||||
haveDelay = true;
|
||||
let d = [];
|
||||
for(const key in it["magnet"]){
|
||||
if (it["magnet"].hasOwnProperty(key)){
|
||||
let title = it["magnet"][key];
|
||||
let burl = key;
|
||||
log('meijumi magnet title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('meijumi magnet burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
d.push(title + '$' + burl);
|
||||
}
|
||||
}
|
||||
d.sort();
|
||||
let newd = [];
|
||||
d.forEach(it=>{
|
||||
newd.push(it.substring(it.indexOf(".")+1));
|
||||
});
|
||||
LISTS.push(newd);
|
||||
}
|
||||
if (Object.keys(it["ali"]).length==1){
|
||||
let d = [];
|
||||
for(const key in it["ali"]){
|
||||
if (it["ali"].hasOwnProperty(key)){
|
||||
let title = it["ali"][key];
|
||||
let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key);
|
||||
//let burl = "push://" + key;
|
||||
log('meijumi ali title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('meijumi ali burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
d.push(title + '$' + burl);
|
||||
if (false && !haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
LISTS.push(d);
|
||||
}
|
||||
if (Object.keys(it["quark"]).length==1){
|
||||
let d = [];
|
||||
for(const key in it["quark"]){
|
||||
if (it["quark"].hasOwnProperty(key)){
|
||||
let title = it["quark"][key];
|
||||
let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key);
|
||||
//let burl = "push://" + key;
|
||||
log('meijumi quark title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('meijumi quark burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
d.push(title + '$' + burl);
|
||||
if (false && !haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
LISTS.push(d);
|
||||
}
|
||||
});
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:'ul.search-page article;h2&&Text;a img&&src;div.entry-content span:eq(1)&&Text;a&&href;div.entry-content div.archive-content&&Text',
|
||||
}
|
|
@ -15,7 +15,7 @@ var rule = {
|
|||
'Accept': '*/*',
|
||||
'Referer': 'https://t-rex.tzfile.com/'
|
||||
},
|
||||
图片来源:'@Referer=https://t-rex.tzfile.com/',
|
||||
图片来源:'@Headers={"Accept":"*/*","Referer":"https://t-rex.tzfile.com/","User-Agent":"Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36"}',
|
||||
timeout:5000,
|
||||
class_name:'电影&电视剧&动画&纪录片演唱会&真人秀综艺',
|
||||
class_url:'movies&tvshow&animation&faction&show',
|
||||
|
@ -42,7 +42,7 @@ list.forEach(function(it) {
|
|||
d.push({
|
||||
title: pdfh(it, 'a&&title'),
|
||||
desc: pdfh(it, 'div.entry-wrapper a&&Text'),
|
||||
pic_url: pdfh(it, 'img&&data-src')+'@Headers={"Referer":"https://t-rex.tzfile.com/"}',
|
||||
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&data-src', HOST),
|
||||
url: pd(it, 'a&&href', HOST)
|
||||
});
|
||||
})
|
||||
|
|
102
js/yyetsp.js
Normal file
102
js/yyetsp.js
Normal file
|
@ -0,0 +1,102 @@
|
|||
var rule = {
|
||||
title:'人人影视[搜]',
|
||||
host:'http://127.0.0.1:10079',
|
||||
homeUrl:'/p/0/socks5:%252F%252F192.168.101.1:1080/https://yyets.click/',
|
||||
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)/.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);
|
||||
`,
|
||||
}
|
Loading…
Reference in a new issue