update PG
This commit is contained in:
+28
-19
@@ -1,12 +1,15 @@
|
||||
var rule = {
|
||||
title:'美剧迷[磁]',
|
||||
host:'https://www.meijumi.net',
|
||||
homeUrl:'/',
|
||||
url: '/fyclass/page/fypage/?',
|
||||
//host:'https://www.meijumi.net',
|
||||
//homeUrl:'/',
|
||||
//url: '/fyclass/page/fypage/?',
|
||||
host:'http://127.0.0.1:10078',
|
||||
homeUrl:'/p/0/s/https://www.meijumi.net/',
|
||||
url: '/p/0/s/https://www.meijumi.net/fyclass/page/fypage/?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchUrl: '/p/0/s/https://www.meijumi.net/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
@@ -36,43 +39,47 @@ 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: pdfh(it, 'a&&href')
|
||||
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: pdfh(it, 'a&&href')
|
||||
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: pdfh(it, 'a&&href')
|
||||
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: pdfh(it, 'header a&&href')
|
||||
url: burl
|
||||
});
|
||||
});
|
||||
}
|
||||
@@ -86,11 +93,12 @@ 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: pdfh(it, 'header a&&href')
|
||||
url: burl
|
||||
});
|
||||
})
|
||||
}else{
|
||||
@@ -98,11 +106,12 @@ if (MY_CATE !== "news" ){
|
||||
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: pdfh(it, 'a&&href')
|
||||
url: burl
|
||||
});
|
||||
})
|
||||
}
|
||||
@@ -165,7 +174,7 @@ playGroups.forEach(function (it) {
|
||||
}else{
|
||||
if (magCount>0){
|
||||
TABS.push("磁力" + groupIndex);
|
||||
haveMag= true;
|
||||
haveMag = true;
|
||||
haveDelay = true;
|
||||
}
|
||||
if (aliCount === 1){
|
||||
@@ -255,10 +264,6 @@ playGroups.forEach(function(it){
|
||||
LISTS.push(newd);
|
||||
}
|
||||
if (Object.keys(it["ali"]).length==1){
|
||||
if (!haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
let d = [];
|
||||
for(const key in it["ali"]){
|
||||
if (it["ali"].hasOwnProperty(key)){
|
||||
@@ -268,15 +273,15 @@ playGroups.forEach(function(it){
|
||||
log('meijumi ali title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('meijumi ali burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
d.push(title + '$' + burl);
|
||||
if (!haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
LISTS.push(d);
|
||||
}
|
||||
if (Object.keys(it["quark"]).length==1){
|
||||
if (!haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
let d = [];
|
||||
for(const key in it["quark"]){
|
||||
if (it["quark"].hasOwnProperty(key)){
|
||||
@@ -286,6 +291,10 @@ playGroups.forEach(function(it){
|
||||
log('meijumi quark title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('meijumi quark burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
d.push(title + '$' + burl);
|
||||
if (!haveMag && !haveDelay){
|
||||
haveDelay = true;
|
||||
LISTS.push(["選擇右側綫路,或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
|
||||
}
|
||||
}
|
||||
}
|
||||
LISTS.push(d);
|
||||
|
||||
Reference in New Issue
Block a user