mirror of
https://github.com/qist/tvbox.git
synced 2025-01-24 11:24:52 +08:00
update PG
This commit is contained in:
parent
95e53a5f60
commit
ec40038c76
@ -60,6 +60,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -124,6 +127,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
126
js/aipanso.js
Normal file
126
js/aipanso.js
Normal file
@ -0,0 +1,126 @@
|
|||||||
|
var rule = {
|
||||||
|
title:'爱盘搜[夸]',
|
||||||
|
host:'https://aipanso.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/forum-fyclass-fypage.html?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/search?page=fypage&s=1&t=-1&k=**',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': PC_UA,
|
||||||
|
'Accept': '*/*',
|
||||||
|
'Referer': 'https://aipanso.com/'
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name:'',
|
||||||
|
class_url:'',
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'',
|
||||||
|
一级:'',
|
||||||
|
二级:{
|
||||||
|
title:"van-row h3&&Text",
|
||||||
|
img:"",
|
||||||
|
desc:"van-row h3&&Text",
|
||||||
|
content:"van-row h3&&Text",
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
TABS.push("夸克雲盤");
|
||||||
|
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
LISTS=[];
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let requestHeaders = {
|
||||||
|
withHeaders: true,
|
||||||
|
redirect: 0,
|
||||||
|
headers:{
|
||||||
|
Referer: MY_URL
|
||||||
|
}
|
||||||
|
};
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
Object.assign(_fetch_params, requestHeaders);
|
||||||
|
let new_html = request ( MY_URL.replace("/s/","/cv/"), _fetch_params);
|
||||||
|
let json=JSON.parse(new_html);
|
||||||
|
let redirectUrl = "";
|
||||||
|
if (json.hasOwnProperty("Location")){
|
||||||
|
redirectUrl = json["Location"];
|
||||||
|
}else if (json.hasOwnProperty("location")){
|
||||||
|
redirectUrl = json["location"];
|
||||||
|
}
|
||||||
|
let title = pdfh(html, 'van-row h3&&Text');
|
||||||
|
LISTS.push([title + '$' + 'push://' + redirectUrl]);
|
||||||
|
`,
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
|
||||||
|
log("aipanso enter search >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + KEY);
|
||||||
|
let withHeaders = {
|
||||||
|
withHeaders: true
|
||||||
|
};
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
Object.assign(_fetch_params, withHeaders);
|
||||||
|
|
||||||
|
log('aipanso search params >>>>>>>>>>>>>>>>>>>>>' + JSON.stringify(_fetch_params));
|
||||||
|
let new_html=request(rule.homeUrl + 'search?page=' + MY_PAGE + '&s=1&t=-1&k=' + encodeURIComponent(KEY) , _fetch_params);
|
||||||
|
//log('aipanso search new_html >>>>>>>>>>>>>>>>>>>>>' + new_html);
|
||||||
|
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("aipanso header setCk key>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>" + json[setCk][key] + " " + (typeof json[setCk][key]));
|
||||||
|
d.push(json[setCk][key].split(";")[0]);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
cookie=d.join(";");
|
||||||
|
setItem(RULE_CK, cookie);
|
||||||
|
fetch_params.headers.Cookie=cookie;
|
||||||
|
rule_fetch_params.headers.Cookie=cookie;
|
||||||
|
}
|
||||||
|
log('aipanso search cookie >>>>>>>>>>>>>>>>>>>>>' + cookie);
|
||||||
|
log('aipanso search body >>>>>>>>>>>>>>>>>>>>>' + json['body'].substring(4096));
|
||||||
|
|
||||||
|
new_html = json['body'];
|
||||||
|
|
||||||
|
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)){
|
||||||
|
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
|
||||||
|
})
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
@ -88,6 +88,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -192,6 +195,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
86
js/funletu.js
Normal file
86
js/funletu.js
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
var rule = {
|
||||||
|
title:'趣盘搜[夸]',
|
||||||
|
host:'https://v.funletu.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/forum-fyclass-fypage.html?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: 'json:/search#{"style":"get","datasrc":"search","query":{"id":"","datetime":"","commonid":1,"parmid":"","fileid":"","reportid":"","validid":"","searchtext":"**"},"page":{"pageSize":10,"pageIndex":1},"order":{"prop":"id","order":"desc"},"message":"请求资源列表数据"};postjson',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': PC_UA,
|
||||||
|
'Accept': '*/*',
|
||||||
|
'Referer': 'https://pan.funletu.com/'
|
||||||
|
},
|
||||||
|
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:
|
||||||
|
let postJson = {
|
||||||
|
style:"get",
|
||||||
|
datasrc:"search",
|
||||||
|
query:{
|
||||||
|
id:"",
|
||||||
|
datetime:"",
|
||||||
|
commonid:1,
|
||||||
|
parmid:"",
|
||||||
|
fileid:"",
|
||||||
|
reportid:"",
|
||||||
|
validid:"",
|
||||||
|
searchtext: KEY
|
||||||
|
},
|
||||||
|
page:{ pageSize:20, pageIndex: MY_PAGE },
|
||||||
|
order:{prop:"id",order:"desc"},
|
||||||
|
message:"请求资源列表数据"
|
||||||
|
};
|
||||||
|
let postData = {
|
||||||
|
method: "POST",
|
||||||
|
body: postJson
|
||||||
|
};
|
||||||
|
log("funletu search postData1>>>>>>>>>>>>>>>" + JSON.stringify(postData));
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
Object.assign(_fetch_params, postData);
|
||||||
|
log("funletu search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
|
let new_html=post(rule.homeUrl + 'search', _fetch_params);
|
||||||
|
//log("funletu search result>>>>>>>>>>>>>>>" + new_html);
|
||||||
|
let json=JSON.parse(new_html);
|
||||||
|
let d=[]
|
||||||
|
for(const it in json["data"]){
|
||||||
|
if (json.data.hasOwnProperty(it)){
|
||||||
|
log("funletu search it>>>>>>>>>>>>>>>" + JSON.stringify(json.data[it]));
|
||||||
|
if (json.data[it].valid === 0){
|
||||||
|
d.push({
|
||||||
|
title:json.data[it].title,
|
||||||
|
img:'',
|
||||||
|
content:json.data[it].updatetime,
|
||||||
|
desc:json.data[it].updatetime,
|
||||||
|
url:'push://'+json.data[it].url.split("?")[0]
|
||||||
|
});
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
@ -79,6 +79,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -180,6 +183,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
@ -79,6 +79,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -180,6 +183,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
@ -60,6 +60,9 @@ pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
|||||||
TABS=[]
|
TABS=[]
|
||||||
let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]');
|
let d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]');
|
||||||
let index = 1;
|
let index = 1;
|
||||||
|
if (d.length>1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
d.forEach(function(it) {
|
d.forEach(function(it) {
|
||||||
TABS.push("夸克雲盤" + index);
|
TABS.push("夸克雲盤" + index);
|
||||||
index = index + 1;
|
index = index + 1;
|
||||||
@ -72,6 +75,9 @@ LISTS=[];
|
|||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
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 d = pdfa(html, 'div.viewthread div.message a[href^="https://pan.quark.cn/s/"]');
|
||||||
let index = 1;
|
let index = 1;
|
||||||
|
if (d.length>1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
d.forEach(function(it) {
|
d.forEach(function(it) {
|
||||||
let burl = pdfh(it, 'a&&href');
|
let burl = pdfh(it, 'a&&href');
|
||||||
if (false){
|
if (false){
|
||||||
|
@ -154,20 +154,32 @@ d.forEach(function(it) {
|
|||||||
});
|
});
|
||||||
LISTS.push(playGroups);
|
LISTS.push(playGroups);
|
||||||
let groupIndex = 1;
|
let groupIndex = 1;
|
||||||
|
let haveDelay = false;
|
||||||
playGroups.forEach(function (it) {
|
playGroups.forEach(function (it) {
|
||||||
let magCount = Object.keys(it["magnet"]).length;
|
let magCount = Object.keys(it["magnet"]).length;
|
||||||
let aliCount = Object.keys(it["ali"]).length;
|
let aliCount = Object.keys(it["ali"]).length;
|
||||||
let quarkCount = Object.keys(it["quark"]).length;
|
let quarkCount = Object.keys(it["quark"]).length;
|
||||||
|
let haveMag = false;
|
||||||
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
|
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if (magCount>0){
|
if (magCount>0){
|
||||||
TABS.push("磁力" + groupIndex);
|
TABS.push("磁力" + groupIndex);
|
||||||
|
haveMag= true;
|
||||||
|
haveDelay = true;
|
||||||
}
|
}
|
||||||
if (aliCount === 1){
|
if (aliCount === 1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
TABS.push("阿里雲盤" + groupIndex);
|
TABS.push("阿里雲盤" + groupIndex);
|
||||||
}
|
}
|
||||||
if (quarkCount === 1){
|
if (quarkCount === 1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
TABS.push("夸克雲盤" + groupIndex);
|
TABS.push("夸克雲盤" + groupIndex);
|
||||||
}
|
}
|
||||||
groupIndex = groupIndex + 1;
|
groupIndex = groupIndex + 1;
|
||||||
@ -219,8 +231,12 @@ if (false && LISTS.length>0 && typeof LISTS[0] === "object"){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
LISTS = [];
|
LISTS = [];
|
||||||
|
let haveDelay = false;
|
||||||
playGroups.forEach(function(it){
|
playGroups.forEach(function(it){
|
||||||
|
let haveMag = false;
|
||||||
if (Object.keys(it["magnet"]).length>0){
|
if (Object.keys(it["magnet"]).length>0){
|
||||||
|
haveMag = true;
|
||||||
|
haveDelay = true;
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["magnet"]){
|
for(const key in it["magnet"]){
|
||||||
if (it["magnet"].hasOwnProperty(key)){
|
if (it["magnet"].hasOwnProperty(key)){
|
||||||
@ -239,6 +255,10 @@ playGroups.forEach(function(it){
|
|||||||
LISTS.push(newd);
|
LISTS.push(newd);
|
||||||
}
|
}
|
||||||
if (Object.keys(it["ali"]).length==1){
|
if (Object.keys(it["ali"]).length==1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["ali"]){
|
for(const key in it["ali"]){
|
||||||
if (it["ali"].hasOwnProperty(key)){
|
if (it["ali"].hasOwnProperty(key)){
|
||||||
@ -253,6 +273,10 @@ playGroups.forEach(function(it){
|
|||||||
LISTS.push(d);
|
LISTS.push(d);
|
||||||
}
|
}
|
||||||
if (Object.keys(it["quark"]).length==1){
|
if (Object.keys(it["quark"]).length==1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["quark"]){
|
for(const key in it["quark"]){
|
||||||
if (it["quark"].hasOwnProperty(key)){
|
if (it["quark"].hasOwnProperty(key)){
|
||||||
@ -270,40 +294,5 @@ playGroups.forEach(function(it){
|
|||||||
`,
|
`,
|
||||||
|
|
||||||
},
|
},
|
||||||
搜索:`js:
|
搜索:'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',
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
|
||||||
let params = 'show=title&tempid=1&tbname=article&mid=1&dopost=search&submit=&keyboard=' + encodeURIComponent(KEY);
|
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
|
||||||
let postData = {
|
|
||||||
method: "POST",
|
|
||||||
body: params
|
|
||||||
};
|
|
||||||
delete(_fetch_params.headers['Content-Type']);
|
|
||||||
Object.assign(_fetch_params, postData);
|
|
||||||
log("meijumi search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
|
||||||
let search_html = request( rule.homeUrl + 'e/search/index.php', _fetch_params, true);
|
|
||||||
log("meijumi search result>>>>>>>>>>>>>>>" + search_html);
|
|
||||||
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');
|
|
||||||
if (searchObj.quick === true){
|
|
||||||
if (title.includes(KEY)){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
});
|
|
||||||
setResult(d);
|
|
||||||
`,
|
|
||||||
}
|
}
|
||||||
|
@ -9,7 +9,7 @@ var rule = {
|
|||||||
filter_url:'{{fl.class}}',
|
filter_url:'{{fl.class}}',
|
||||||
filter:{
|
filter:{
|
||||||
},
|
},
|
||||||
searchUrl: '/?s=**',
|
searchUrl: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.meijumi.net/?s=**',
|
||||||
searchable:2,
|
searchable:2,
|
||||||
quickSearch:0,
|
quickSearch:0,
|
||||||
filterable:0,
|
filterable:0,
|
||||||
@ -157,20 +157,32 @@ d.forEach(function(it) {
|
|||||||
});
|
});
|
||||||
LISTS.push(playGroups);
|
LISTS.push(playGroups);
|
||||||
let groupIndex = 1;
|
let groupIndex = 1;
|
||||||
|
let haveDelay = false;
|
||||||
playGroups.forEach(function (it) {
|
playGroups.forEach(function (it) {
|
||||||
let magCount = Object.keys(it["magnet"]).length;
|
let magCount = Object.keys(it["magnet"]).length;
|
||||||
let aliCount = Object.keys(it["ali"]).length;
|
let aliCount = Object.keys(it["ali"]).length;
|
||||||
let quarkCount = Object.keys(it["quark"]).length;
|
let quarkCount = Object.keys(it["quark"]).length;
|
||||||
|
let haveMag = false;
|
||||||
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
|
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
|
||||||
|
|
||||||
}else{
|
}else{
|
||||||
if (magCount>0){
|
if (magCount>0){
|
||||||
TABS.push("磁力" + groupIndex);
|
TABS.push("磁力" + groupIndex);
|
||||||
|
haveMag = true;
|
||||||
|
haveDelay = true;
|
||||||
}
|
}
|
||||||
if (aliCount === 1){
|
if (aliCount === 1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
TABS.push("阿里雲盤" + groupIndex);
|
TABS.push("阿里雲盤" + groupIndex);
|
||||||
}
|
}
|
||||||
if (quarkCount === 1){
|
if (quarkCount === 1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
TABS.push("夸克雲盤" + groupIndex);
|
TABS.push("夸克雲盤" + groupIndex);
|
||||||
}
|
}
|
||||||
groupIndex = groupIndex + 1;
|
groupIndex = groupIndex + 1;
|
||||||
@ -222,8 +234,12 @@ if (false && LISTS.length>0 && typeof LISTS[0] === "object"){
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
LISTS = [];
|
LISTS = [];
|
||||||
|
let haveDelay = false;
|
||||||
playGroups.forEach(function(it){
|
playGroups.forEach(function(it){
|
||||||
|
let haveMag = false;
|
||||||
if (Object.keys(it["magnet"]).length>0){
|
if (Object.keys(it["magnet"]).length>0){
|
||||||
|
haveMag = true;
|
||||||
|
haveDelay = true;
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["magnet"]){
|
for(const key in it["magnet"]){
|
||||||
if (it["magnet"].hasOwnProperty(key)){
|
if (it["magnet"].hasOwnProperty(key)){
|
||||||
@ -242,6 +258,10 @@ playGroups.forEach(function(it){
|
|||||||
LISTS.push(newd);
|
LISTS.push(newd);
|
||||||
}
|
}
|
||||||
if (Object.keys(it["ali"]).length==1){
|
if (Object.keys(it["ali"]).length==1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["ali"]){
|
for(const key in it["ali"]){
|
||||||
if (it["ali"].hasOwnProperty(key)){
|
if (it["ali"].hasOwnProperty(key)){
|
||||||
@ -256,6 +276,10 @@ playGroups.forEach(function(it){
|
|||||||
LISTS.push(d);
|
LISTS.push(d);
|
||||||
}
|
}
|
||||||
if (Object.keys(it["quark"]).length==1){
|
if (Object.keys(it["quark"]).length==1){
|
||||||
|
if (!haveMag && !haveDelay){
|
||||||
|
haveDelay = true;
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
let d = [];
|
let d = [];
|
||||||
for(const key in it["quark"]){
|
for(const key in it["quark"]){
|
||||||
if (it["quark"].hasOwnProperty(key)){
|
if (it["quark"].hasOwnProperty(key)){
|
||||||
@ -273,40 +297,5 @@ playGroups.forEach(function(it){
|
|||||||
`,
|
`,
|
||||||
|
|
||||||
},
|
},
|
||||||
搜索:`js:
|
搜索:'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',
|
||||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
|
||||||
let params = 'show=title&tempid=1&tbname=article&mid=1&dopost=search&submit=&keyboard=' + encodeURIComponent(KEY);
|
|
||||||
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
|
||||||
let postData = {
|
|
||||||
method: "POST",
|
|
||||||
body: params
|
|
||||||
};
|
|
||||||
delete(_fetch_params.headers['Content-Type']);
|
|
||||||
Object.assign(_fetch_params, postData);
|
|
||||||
log("meijumi search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
|
||||||
let search_html = request( rule.homeUrl + 'e/search/index.php', _fetch_params, true);
|
|
||||||
log("meijumi search result>>>>>>>>>>>>>>>" + search_html);
|
|
||||||
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');
|
|
||||||
if (searchObj.quick === true){
|
|
||||||
if (title.includes(KEY)){
|
|
||||||
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
|
|
||||||
});
|
|
||||||
});
|
|
||||||
setResult(d);
|
|
||||||
`,
|
|
||||||
}
|
}
|
||||||
|
@ -60,6 +60,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -124,6 +127,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste.reverse());
|
LISTS.push(liste.reverse());
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
@ -116,6 +116,9 @@ if (tabsm === true){
|
|||||||
if (tabse === true){
|
if (tabse === true){
|
||||||
TABS.push("電驢");
|
TABS.push("電驢");
|
||||||
}
|
}
|
||||||
|
if (tabsa.length + tabsq.length > 1){
|
||||||
|
TABS.push("選擇右側綫路");
|
||||||
|
}
|
||||||
let tmpIndex;
|
let tmpIndex;
|
||||||
tmpIndex=1;
|
tmpIndex=1;
|
||||||
tabsa.forEach(function(it){
|
tabsa.forEach(function(it){
|
||||||
@ -220,6 +223,9 @@ if (listm.length>0){
|
|||||||
if (liste.length>0){
|
if (liste.length>0){
|
||||||
LISTS.push(liste);
|
LISTS.push(liste);
|
||||||
}
|
}
|
||||||
|
if (lista.length + listq.length > 1){
|
||||||
|
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||||
|
}
|
||||||
lista.forEach(function(it){
|
lista.forEach(function(it){
|
||||||
LISTS.push([it]);
|
LISTS.push([it]);
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user