update PG
This commit is contained in:
+54
-12
@@ -37,7 +37,7 @@ var rule = {
|
||||
d.push({
|
||||
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
||||
pic_url: pdfh(it, 'div.thumbnail img&&src'),
|
||||
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||
});
|
||||
});
|
||||
@@ -56,7 +56,7 @@ var rule = {
|
||||
d.push({
|
||||
title: pdfh(it, 'div.thumbnail img&&alt'),
|
||||
desc: pdfh(it, 'div.info&&span.info_date&&Text') + ' / ' + pdfh(it, 'div.info&&span.info_category&&Text'),
|
||||
pic_url: pdfh(it, 'div.thumbnail img&&src'),
|
||||
pic_url: pd(it, 'div.thumbnail img&&src', HOST),
|
||||
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||
});
|
||||
})
|
||||
@@ -91,6 +91,7 @@ let tabsa = [];
|
||||
let tabsq = [];
|
||||
let tabsm = false;
|
||||
let tabse = false;
|
||||
let tabm3u8 = [];
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
@@ -103,6 +104,12 @@ d.forEach(function(it) {
|
||||
tabse = true;
|
||||
}
|
||||
});
|
||||
if (false){
|
||||
d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)');
|
||||
d.forEach(function(it) {
|
||||
tabm3u8.push(pdfh(it, 'h3&&Text'));
|
||||
});
|
||||
}
|
||||
if (tabsm === true){
|
||||
TABS.push("磁力");
|
||||
}
|
||||
@@ -120,6 +127,9 @@ tabsq.forEach(function(it){
|
||||
TABS.push(it + tmpIndex);
|
||||
tmpIndex = tmpIndex + 1;
|
||||
});
|
||||
tabm3u8.forEach(function(it){
|
||||
TABS.push(it);
|
||||
});
|
||||
log('xb6v TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
@@ -131,6 +141,7 @@ let lista = [];
|
||||
let listq = [];
|
||||
let listm = [];
|
||||
let liste = [];
|
||||
let listm3u8 = {};
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
@@ -159,6 +170,42 @@ d.forEach(function(it){
|
||||
liste.push(loopresult);
|
||||
}
|
||||
});
|
||||
if (false){
|
||||
d = pdfa(html, 'div:has(>div#post_content) div.widget:has(>h3)');
|
||||
d.forEach(function(it){
|
||||
let index = pdfh(it, 'h3&&Text');
|
||||
let burl = pd(it, 'a&&href', HOST);
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let m3u8_html = request(burl);
|
||||
let playerUrl = pd(m3u8_html, 'div.video&&iframe&&src', HOST);
|
||||
log('xb6v playerUrl >>>>>>>>>>>>>>>>>>>>>>>>>>' + playerUrl);
|
||||
if (!listm3u8.hasOwnProperty(index)){
|
||||
listm3u8[index] = [];
|
||||
}
|
||||
let loopresult = title + '$' + ' ';
|
||||
if (/(\\/player\\/|\\/share\\/)/.test(playerUrl)){
|
||||
let player_html = request(playerUrl);
|
||||
let m3u8Url="";
|
||||
try{
|
||||
m3u8Url = player_html.match(/'([^']*.m3u8)'/)[1];
|
||||
}catch(e){
|
||||
try{
|
||||
m3u8Url = player_html.match(/"([^"]*.m3u8)"/)[1];
|
||||
}catch(e){
|
||||
m3u8Url = "";
|
||||
}
|
||||
}
|
||||
if (m3u8Url !== ""){
|
||||
m3u8Url = urljoin2(playerUrl, m3u8Url);
|
||||
log('xb6v m3u8Url >>>>>>>>>>>>>>>>>>>>>>>>>>' + m3u8Url);
|
||||
loopresult = title + '$' + m3u8Url;
|
||||
}
|
||||
}
|
||||
listm3u8[index].push(loopresult);
|
||||
});
|
||||
}
|
||||
if (listm.length>0){
|
||||
LISTS.push(listm);
|
||||
}
|
||||
@@ -171,21 +218,16 @@ lista.forEach(function(it){
|
||||
listq.forEach(function(it){
|
||||
LISTS.push([it]);
|
||||
});
|
||||
for ( const key in listm3u8 ){
|
||||
if (listm3u8.hasOwnProperty(key)){
|
||||
LISTS.push(listm3u8[key]);
|
||||
}
|
||||
};
|
||||
`,
|
||||
|
||||
},
|
||||
搜索:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
|
||||
//let new_host=HOST;
|
||||
//let new_html=request(new_host, {withHeaders:true});
|
||||
//let json=JSON.parse(new_html);
|
||||
//let setCk=Object.keys(json).find(it=>it.toLowerCase()==="set-cookie");
|
||||
//let cookie=setCk?json[setCk].split(";")[0]:"";
|
||||
//log("xb6v cookie>>>>>>>>>>>>>>>>>>>>>>"+cookie);
|
||||
//rule_fetch_params.headers.Cookie=cookie;
|
||||
//setItem(RULE_CK,cookie);
|
||||
|
||||
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 = {
|
||||
|
||||
Reference in New Issue
Block a user