mirror of
https://github.com/alantang1977/X.git
synced 2024-12-25 19:03:10 +02:00
Add files via upload
This commit is contained in:
parent
83f01540f8
commit
a762ac01de
6 changed files with 1054 additions and 0 deletions
130
pg/js/tzfile.js
Normal file
130
pg/js/tzfile.js
Normal file
|
@ -0,0 +1,130 @@
|
||||||
|
var rule = {
|
||||||
|
title:'团长资源',
|
||||||
|
host:'https://t-rex.tzfile.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/fyclass/page/fypage?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/?s=**&type=post',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Accept': '*/*',
|
||||||
|
'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',
|
||||||
|
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 = [];
|
||||||
|
log("tzfiles input>>>>>>>>>>>>>>"+input);
|
||||||
|
let html = request(input);
|
||||||
|
//log("tzfiles 1level html>>>>>>>>>>>>>>"+html);
|
||||||
|
let list = pdfa(html, '#primary-home ul li:has(img)');
|
||||||
|
list.forEach(function(it) {
|
||||||
|
d.push({
|
||||||
|
title: pdfh(it, 'img&&alt'),
|
||||||
|
desc: pdfh(it, 'div.post-info .post-list-cat&&Text'),
|
||||||
|
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST),
|
||||||
|
url: pd(it, 'a&&href', HOST)
|
||||||
|
});
|
||||||
|
})
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
二级:{
|
||||||
|
title:"#primary-home h1&&Text",
|
||||||
|
img:"#primary-home article div.entry-content img&&src",
|
||||||
|
desc:"#primary-home .post-meta li.single-date&&Text",
|
||||||
|
content:"#primary-home article .entry-content&&Text",
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[];
|
||||||
|
let d = pdfa(html, '#primary-home article div.entry-content p');
|
||||||
|
let tabsq=[];
|
||||||
|
d.forEach(function(it) {
|
||||||
|
let purl = pd(it, 'a&&href', HOST);
|
||||||
|
if (purl.includes("pan.quark.cn")){
|
||||||
|
tabsq.push("夸克網盤");
|
||||||
|
} else if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.com/s/")){
|
||||||
|
tabsq.push("阿里雲盤");
|
||||||
|
}
|
||||||
|
});
|
||||||
|
if (tabsq.length==1){
|
||||||
|
TABS=tabsq;
|
||||||
|
}else{
|
||||||
|
let tmpIndex=1;
|
||||||
|
tabsq.forEach(function(it){
|
||||||
|
TABS.push(it+tmpIndex);
|
||||||
|
tmpIndex++;
|
||||||
|
});
|
||||||
|
}
|
||||||
|
log('tzfile TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
LISTS=[];
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let d = pdfa(html, '#primary-home article div.entry-content p');
|
||||||
|
d.forEach(function(it) {
|
||||||
|
let purl = pd(it, 'a&&href', HOST);
|
||||||
|
if (/(pan.quark.cn|www.aliyundrive.com|www.alipan.com)/.test(purl)){
|
||||||
|
let type="ali";
|
||||||
|
if (purl.includes("pan.quark.cn")){
|
||||||
|
type="quark";
|
||||||
|
} else if (purl.includes("www.aliyundrive.com") || purl.includes("www.alipan.com")){
|
||||||
|
type="ali";
|
||||||
|
}
|
||||||
|
let confirm="";
|
||||||
|
if (TABS.length==1){
|
||||||
|
confirm="&confirm=0";
|
||||||
|
}
|
||||||
|
LISTS.push([purl+'$'+'http://127.0.0.1:9978/proxy?do='+type+'&type=push'+confirm+'&url='+encodeURIComponent(purl)]);
|
||||||
|
}
|
||||||
|
});
|
||||||
|
`,
|
||||||
|
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
//'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info .post-list-cat&&Text;a&&href',
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let html = request(input);
|
||||||
|
let d=[];
|
||||||
|
let dlist = pdfa(html, '#primary-home ul li:has(img)');
|
||||||
|
dlist.forEach(function(it){
|
||||||
|
let title=pdfh(it, 'img&&alt');
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
title = KEY;
|
||||||
|
}
|
||||||
|
let img='http://127.0.0.1:10079/i/0/s/' + pd(it, 'img&&src',HOST);
|
||||||
|
let content=pdfh(it, 'div.text_info h2&&Text');
|
||||||
|
let url=pd(it, 'a&&href', HOST);
|
||||||
|
let desc=pdfh(it, 'p.info&&Text');
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:img,
|
||||||
|
content:content,
|
||||||
|
desc:desc,
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
}
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
242
pg/js/xb6v.js
Normal file
242
pg/js/xb6v.js
Normal file
|
@ -0,0 +1,242 @@
|
||||||
|
var rule = {
|
||||||
|
title:'新版6V[磁]',
|
||||||
|
host:'http://www.xb6v.com',
|
||||||
|
homeUrl:'/',
|
||||||
|
url: '/fyclass/index_fypage.html?',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/e/search/index.php#tempid=1&tbname=article&mid=1&dopost=search&submit=&keyborad=**;post',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Referer': 'http://www.xb6v.com/'
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name:'最新50部&喜剧片&动作片&爱情片&科幻片&恐怖片&剧情片&战争片&纪录片&动画片&电视剧&综艺',
|
||||||
|
class_url:'qian50m.html&xijupian&dongzuopian&aiqingpian&kehuanpian&kongbupian&juqingpian&zhanzhengpian&jilupian&donghuapian&dianshiju&ZongYi',
|
||||||
|
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 list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
|
list.forEach(it => {
|
||||||
|
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: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
|
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||||
|
});
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
一级:'',
|
||||||
|
一级:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
let d = [];
|
||||||
|
if (MY_CATE !== 'qian50m.html') {
|
||||||
|
let turl = (MY_PAGE === 1)? '/' : '/index_'+ MY_PAGE + '.html';
|
||||||
|
input = rule.homeUrl + MY_CATE + turl;
|
||||||
|
let html = request(input);
|
||||||
|
let list = pdfa(html, 'div.mainleft ul#post_container li');
|
||||||
|
list.forEach(it => {
|
||||||
|
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: pd(it, 'div.thumbnail img&&src', HOST),
|
||||||
|
url: pdfh(it, 'div.thumbnail&&a&&href')
|
||||||
|
});
|
||||||
|
})
|
||||||
|
}else{
|
||||||
|
input = rule.homeUrl + MY_CATE;
|
||||||
|
let html = request(input);
|
||||||
|
let list = pdfa(html, 'div.container div#tab-content&&ul&&li');
|
||||||
|
list.forEach(it => {
|
||||||
|
let title = pdfh(it, 'a&&Text');
|
||||||
|
if (title!==""){
|
||||||
|
d.push({
|
||||||
|
title: title,
|
||||||
|
desc: pdfh(it, 'a&&Text'),
|
||||||
|
pic_url: '',
|
||||||
|
url: pdfh(it, 'a&&href')
|
||||||
|
});
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
二级:{
|
||||||
|
title:"div.article_container h1&&Text",
|
||||||
|
img:"div#post_content img&&src",
|
||||||
|
desc:"div#post_content&&Text",
|
||||||
|
content:"div#post_content&&Text",
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
let d = pdfa(html, 'div#post_content table tbody tr a');
|
||||||
|
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/") || burl.startsWith("https://www.alipan.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 (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("磁力");
|
||||||
|
}
|
||||||
|
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;
|
||||||
|
});
|
||||||
|
tabm3u8.forEach(function(it){
|
||||||
|
TABS.push(it);
|
||||||
|
});
|
||||||
|
log('xb6v TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
LISTS = [];
|
||||||
|
let d = pdfa(html, 'div#post_content table tbody tr a');
|
||||||
|
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');
|
||||||
|
log('xb6v title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
|
log('xb6v burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
|
let loopresult = title + '$' + burl;
|
||||||
|
if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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]);
|
||||||
|
});
|
||||||
|
for ( const key in listm3u8 ){
|
||||||
|
if (listm3u8.hasOwnProperty(key)){
|
||||||
|
LISTS.push(listm3u8[key]);
|
||||||
|
}
|
||||||
|
};
|
||||||
|
`,
|
||||||
|
|
||||||
|
},
|
||||||
|
搜索:`js:
|
||||||
|
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("xb6v search postData>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
|
let search_html = request( HOST + '/e/search/index.php', _fetch_params, true);
|
||||||
|
//log("xb6v 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').replace( /(<([^>]+)>)/ig, '');
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
if (false && 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);
|
||||||
|
`,
|
||||||
|
}
|
177
pg/js/xzys.js
Normal file
177
pg/js/xzys.js
Normal file
|
@ -0,0 +1,177 @@
|
||||||
|
var rule = {
|
||||||
|
title:'校长影视[云盘]',
|
||||||
|
host:'https://xzys.fun',
|
||||||
|
homeUrl: '/',
|
||||||
|
url: '/fyclass.html?page=fypage',
|
||||||
|
filter_url:'{{fl.class}}',
|
||||||
|
filter:{
|
||||||
|
},
|
||||||
|
searchUrl: '/search.html?keyword=**',
|
||||||
|
searchable:2,
|
||||||
|
quickSearch:0,
|
||||||
|
filterable:0,
|
||||||
|
headers:{
|
||||||
|
'User-Agent': 'PC_UA',
|
||||||
|
'Cookie':''
|
||||||
|
},
|
||||||
|
timeout:5000,
|
||||||
|
class_name: '电视剧&电影&动漫&纪录片&综艺',
|
||||||
|
class_url: 'dsj&dy&dm&jlp&zy',
|
||||||
|
play_parse:true,
|
||||||
|
play_json:[{
|
||||||
|
re:'*',
|
||||||
|
json:{
|
||||||
|
parse:0,
|
||||||
|
jx:0
|
||||||
|
}
|
||||||
|
}],
|
||||||
|
lazy:'',
|
||||||
|
limit:6,
|
||||||
|
推荐:'div.container div.row a:has(>img);img&&alt;img&&src;img&&alt;a&&href',
|
||||||
|
一级:'div.container div.row div.list-boxes;img&&alt;img&&src;div.list-actions&&Text;a&&href',
|
||||||
|
二级:{
|
||||||
|
title:"div.container div.row h1&&Text",
|
||||||
|
img:"div.container div.row img&&src",
|
||||||
|
desc:'div.container div.row div.article-infobox&&Text', //remark
|
||||||
|
content:'div.container div.row div#info&&Text',
|
||||||
|
tabs:`js:
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
TABS=[]
|
||||||
|
let d = pdfa(html, 'div.container div.row 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://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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('xzys TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||||
|
`,
|
||||||
|
lists:`js:
|
||||||
|
log(TABS);
|
||||||
|
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||||
|
LISTS = [];
|
||||||
|
let d = pdfa(html, 'div.container div.row 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('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||||
|
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||||
|
let loopresult = title + '$' + burl;
|
||||||
|
if (burl.startsWith("https://www.aliyundrive.com/s/") || burl.startsWith("https://www.alipan.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('xzys seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
|
||||||
|
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
|
||||||
|
log("xzys search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
|
||||||
|
let search_html = request( HOST + '/search.html?keyword=' + encodeURIComponent(KEY), _fetch_params)
|
||||||
|
//log("xzys search result>>>>>>>>>>>>>>>" + search_html);
|
||||||
|
let d=[];
|
||||||
|
let dlist = pdfa(search_html, 'div.container div.row div.list-boxes');
|
||||||
|
dlist.forEach(function(it){
|
||||||
|
let title = pdfh(it, 'h2 a img&&alt');
|
||||||
|
if (searchObj.quick === true){
|
||||||
|
if (title.includes(KEY)){
|
||||||
|
title = KEY;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
let img = pd(it, 'h2 a img&&src', HOST);
|
||||||
|
let content = pdfh(it, 'p.text_p&&Text');
|
||||||
|
let desc = pdfh(it, 'div.list-actions&&Text'); //remark
|
||||||
|
let url = pd(it, 'h2 a&&href', HOST);
|
||||||
|
d.push({
|
||||||
|
title:title,
|
||||||
|
img:img,
|
||||||
|
content:content,
|
||||||
|
desc:desc,
|
||||||
|
url:url
|
||||||
|
})
|
||||||
|
});
|
||||||
|
setResult(d);
|
||||||
|
`,
|
||||||
|
}
|
102
pg/js/yyets.js
Normal file
102
pg/js/yyets.js
Normal file
|
@ -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);
|
||||||
|
`,
|
||||||
|
}
|
102
pg/js/yyetsp.js
Normal file
102
pg/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|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);
|
||||||
|
`,
|
||||||
|
}
|
301
pg/js/模板.js
Normal file
301
pg/js/模板.js
Normal file
|
@ -0,0 +1,301 @@
|
||||||
|
if (typeof Object.assign != 'function') {
|
||||||
|
Object.assign = function () {
|
||||||
|
var target = arguments[0];
|
||||||
|
for (var i = 1; i < arguments.length; i++) {
|
||||||
|
var source = arguments[i];
|
||||||
|
for (var key in source) {
|
||||||
|
if (Object.prototype.hasOwnProperty.call(source, key)) {
|
||||||
|
target[key] = source[key];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return target;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
function getMubans() {
|
||||||
|
var mubanDict = { // 模板字典
|
||||||
|
mxpro: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
// homeUrl:'/',
|
||||||
|
url: '/vodshow/fyclass--------fypage---.html',
|
||||||
|
searchUrl: '/vodsearch/**----------fypage---.html',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {//网站的请求头,完整支持所有的,常带ua和cookies
|
||||||
|
'User-Agent': 'MOBILE_UA',
|
||||||
|
// "Cookie": "searchneed=ok"
|
||||||
|
},
|
||||||
|
class_parse: '.navbar-items li:gt(2):lt(8);a&&Text;a&&href;/(\\d+).html',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: '.tab-list.active;a.module-poster-item.module-item;.module-poster-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: 'body a.module-poster-item.module-item;a&&title;.lazyload&&data-original;.module-item-note&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": "h1&&Text;.module-info-tag&&Text",
|
||||||
|
"img": ".lazyload&&data-original",
|
||||||
|
"desc": ".module-info-item:eq(1)&&Text;.module-info-item:eq(2)&&Text;.module-info-item:eq(3)&&Text",
|
||||||
|
"content": ".module-info-introduction&&Text",
|
||||||
|
"tabs": ".module-tab-item",
|
||||||
|
"lists": ".module-play-list:eq(#id) a"
|
||||||
|
},
|
||||||
|
搜索: 'body .module-item;.module-card-item-title&&Text;.lazyload&&data-original;.module-item-note&&Text;a&&href;.module-info-item-content&&Text',
|
||||||
|
},
|
||||||
|
mxone5: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
url: '/show/fyclass--------fypage---.html',
|
||||||
|
searchUrl: '/search/**----------fypage---.html',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
class_parse: '.nav-menu-items&&li;a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: '.module-list;.module-items&&.module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: '.module-items .module-item;a&&title;img&&data-src;.module-item-text&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": "h1&&Text;.tag-link&&Text",
|
||||||
|
"img": ".module-item-pic&&img&&data-src",
|
||||||
|
"desc": ".video-info-items:eq(0)&&Text;.video-info-items:eq(1)&&Text;.video-info-items:eq(2)&&Text;.video-info-items:eq(3)&&Text",
|
||||||
|
"content": ".vod_content&&Text",
|
||||||
|
"tabs": ".module-tab-item",
|
||||||
|
"lists": ".module-player-list:eq(#id)&&.scroll-content&&a"
|
||||||
|
},
|
||||||
|
搜索: '.module-items .module-search-item;a&&title;img&&data-src;.video-serial&&Text;a&&href',
|
||||||
|
},
|
||||||
|
首图: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
url: '/vodshow/fyclass--------fypage---/',
|
||||||
|
searchUrl: '/vodsearch/**----------fypage---.html',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {//网站的请求头,完整支持所有的,常带ua和cookies
|
||||||
|
'User-Agent': 'MOBILE_UA',
|
||||||
|
// "Cookie": "searchneed=ok"
|
||||||
|
},
|
||||||
|
class_parse: '.myui-header__menu li.hidden-sm:gt(0):lt(5);a&&Text;a&&href;/(\\d+).html',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: 'ul.myui-vodlist.clearfix;li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: '.myui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": ".myui-content__detail .title&&Text;.myui-content__detail p:eq(-2)&&Text",
|
||||||
|
"img": ".myui-content__thumb .lazyload&&data-original",
|
||||||
|
"desc": ".myui-content__detail p:eq(0)&&Text;.myui-content__detail p:eq(1)&&Text;.myui-content__detail p:eq(2)&&Text",
|
||||||
|
"content": ".content&&Text",
|
||||||
|
"tabs": ".nav-tabs:eq(0) li",
|
||||||
|
"lists": ".myui-content__list:eq(#id) li"
|
||||||
|
},
|
||||||
|
搜索: '#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
|
||||||
|
},
|
||||||
|
首图2: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
url: '/list/fyclass-fypage.html',
|
||||||
|
searchUrl: '/vodsearch/**----------fypage---.html',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'UC_UA',
|
||||||
|
// "Cookie": ""
|
||||||
|
},
|
||||||
|
// class_parse:'.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;/(\\d+).html',
|
||||||
|
class_parse: '.stui-header__menu li:gt(0):lt(7);a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: 'ul.stui-vodlist.clearfix;li;a&&title;.lazyload&&data-original;.pic-text&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: '.stui-vodlist li;a&&title;a&&data-original;.pic-text&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": ".stui-content__detail .title&&Text;.stui-content__detail p:eq(-2)&&Text",
|
||||||
|
"img": ".stui-content__thumb .lazyload&&data-original",
|
||||||
|
"desc": ".stui-content__detail p:eq(0)&&Text;.stui-content__detail p:eq(1)&&Text;.stui-content__detail p:eq(2)&&Text",
|
||||||
|
"content": ".detail&&Text",
|
||||||
|
"tabs": ".stui-vodlist__head h3",
|
||||||
|
"lists": ".stui-content__playlist:eq(#id) li"
|
||||||
|
},
|
||||||
|
搜索: 'ul.stui-vodlist__media:eq(0) li,ul.stui-vodlist:eq(0) li,#searchList li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
|
||||||
|
搜索1: 'ul.stui-vodlist&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
|
||||||
|
搜索2: 'ul.stui-vodlist__media&&li;a&&title;.lazyload&&data-original;.text-muted&&Text;a&&href;.text-muted:eq(-1)&&Text',
|
||||||
|
},
|
||||||
|
默认: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
url: '/vodshow/fyclass--------fypage---.html',
|
||||||
|
searchUrl: '/vodsearch/-------------.html?wd=**',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'MOBILE_UA',
|
||||||
|
},
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
},
|
||||||
|
vfed: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
url: '/index.php/vod/show/id/fyclass/page/fypage.html',
|
||||||
|
searchUrl: '/index.php/vod/search/page/fypage/wd/**.html',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'UC_UA',
|
||||||
|
},
|
||||||
|
// class_parse:'.fed-pops-navbar&&ul.fed-part-rows&&a.fed-part-eone:gt(0):lt(5);a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
class_parse: '.fed-pops-navbar&&ul.fed-part-rows&&a;a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: 'ul.fed-list-info.fed-part-rows;li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: '.fed-list-info&&li;a.fed-list-title&&Text;a&&data-original;.fed-list-remarks&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": "h1.fed-part-eone&&Text;.fed-deta-content&&.fed-part-rows&&li&&Text",
|
||||||
|
"img": ".fed-list-info&&a&&data-original",
|
||||||
|
"desc": ".fed-deta-content&&.fed-part-rows&&li:eq(1)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(2)&&Text;.fed-deta-content&&.fed-part-rows&&li:eq(3)&&Text",
|
||||||
|
"content": ".fed-part-esan&&Text",
|
||||||
|
"tabs": ".fed-drop-boxs&&.fed-part-rows&&li",
|
||||||
|
"lists": ".fed-play-item:eq(#id)&&ul:eq(1)&&li"
|
||||||
|
},
|
||||||
|
搜索: '.fed-deta-info;h1&&Text;.lazyload&&data-original;.fed-list-remarks&&Text;a&&href;.fed-deta-content&&Text',
|
||||||
|
},
|
||||||
|
海螺3: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
searchUrl: '/v_search/**----------fypage---.html',
|
||||||
|
url: '/vod_____show/fyclass--------fypage---.html',
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'MOBILE_UA'
|
||||||
|
},
|
||||||
|
timeout: 5000,
|
||||||
|
class_parse: 'body&&.hl-nav li:gt(0);a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
cate_exclude: '明星|专题|最新|排行',
|
||||||
|
limit: 40,
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
推荐: '.hl-vod-list;li;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||||||
|
double: true,
|
||||||
|
一级: '.hl-vod-list&&.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": ".hl-infos-title&&Text;.hl-text-conch&&Text",
|
||||||
|
"img": ".hl-lazy&&data-original",
|
||||||
|
"desc": ".hl-infos-content&&.hl-text-conch&&Text",
|
||||||
|
"content": ".hl-content-text&&Text",
|
||||||
|
"tabs": ".hl-tabs&&a",
|
||||||
|
"lists": ".hl-plays-list:eq(#id)&&li"
|
||||||
|
},
|
||||||
|
搜索: '.hl-list-item;a&&title;a&&data-original;.remarks&&Text;a&&href',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
},
|
||||||
|
海螺2: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
searchUrl: '/index.php/vod/search/page/fypage/wd/**/',
|
||||||
|
url: '/index.php/vod/show/id/fyclass/page/fypage/',
|
||||||
|
headers: {
|
||||||
|
'User-Agent': 'MOBILE_UA'
|
||||||
|
},
|
||||||
|
timeout: 5000,
|
||||||
|
class_parse: '#nav-bar li;a&&Text;a&&href;id/(.*?)/',
|
||||||
|
limit: 40,
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
推荐: '.list-a.size;li;a&&title;.lazy&&data-original;.bt&&Text;a&&href',
|
||||||
|
double: true,
|
||||||
|
一级: '.list-a&&li;a&&title;.lazy&&data-original;.list-remarks&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": "h2&&Text;.deployment&&Text",
|
||||||
|
"img": ".lazy&&data-original",
|
||||||
|
"desc": ".deployment&&Text",
|
||||||
|
"content": ".ec-show&&Text",
|
||||||
|
"tabs": "#tag&&a",
|
||||||
|
"lists": ".play_list_box:eq(#id)&&li"
|
||||||
|
},
|
||||||
|
搜索: '.search-list;a&&title;.lazy&&data-original;.deployment&&Text;a&&href',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
},
|
||||||
|
短视: {
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
// homeUrl:'/',
|
||||||
|
url: '/channel/fyclass-fypage.html',
|
||||||
|
searchUrl: '/search.html?wd=**',
|
||||||
|
searchable: 2,//是否启用全局搜索,
|
||||||
|
quickSearch: 0,//是否启用快速搜索,
|
||||||
|
filterable: 0,//是否启用分类筛选,
|
||||||
|
headers: {//网站的请求头,完整支持所有的,常带ua和cookies
|
||||||
|
'User-Agent': 'MOBILE_UA',
|
||||||
|
// "Cookie": "searchneed=ok"
|
||||||
|
},
|
||||||
|
class_parse: '.menu_bottom ul li;a&&Text;a&&href;.*/(.*?).html',
|
||||||
|
cate_exclude: '解析|动态',
|
||||||
|
play_parse: true,
|
||||||
|
lazy: '',
|
||||||
|
limit: 6,
|
||||||
|
推荐: '.indexShowBox;ul&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
|
||||||
|
double: true, // 推荐内容是否双层定位
|
||||||
|
一级: '.pic-list&&li;a&&title;img&&data-src;.s1&&Text;a&&href',
|
||||||
|
二级: {
|
||||||
|
"title": "h1&&Text;.content-rt&&p:eq(0)&&Text",
|
||||||
|
"img": ".img&&img&&data-src",
|
||||||
|
"desc": ".content-rt&&p:eq(1)&&Text;.content-rt&&p:eq(2)&&Text;.content-rt&&p:eq(3)&&Text;.content-rt&&p:eq(4)&&Text;.content-rt&&p:eq(5)&&Text",
|
||||||
|
"content": ".zkjj_a&&Text",
|
||||||
|
"tabs": ".py-tabs&&option",
|
||||||
|
"lists": ".player:eq(#id) li"
|
||||||
|
},
|
||||||
|
搜索: '.sr_lists&&ul&&li;h3&&Text;img&&data-src;.int&&p:eq(0)&&Text;a&&href',
|
||||||
|
},
|
||||||
|
短视2:{
|
||||||
|
title: '',
|
||||||
|
host: '',
|
||||||
|
class_name:'电影&电视剧&综艺&动漫',
|
||||||
|
class_url:'1&2&3&4',
|
||||||
|
searchUrl: '/index.php/ajax/suggest?mid=1&wd=**',
|
||||||
|
searchable: 2,
|
||||||
|
quickSearch: 0,
|
||||||
|
headers:{'User-Agent':'MOBILE_UA'},
|
||||||
|
url: '/index.php/api/vod#type=fyclass&page=fypage',
|
||||||
|
filterable:0,//是否启用分类筛选,
|
||||||
|
filter_url:'',
|
||||||
|
filter: {},
|
||||||
|
filter_def:{},
|
||||||
|
detailUrl:'/index.php/vod/detail/id/fyid.html',
|
||||||
|
推荐:'.list-vod.flex .public-list-box;a&&title;.lazy&&data-original;.public-list-prb&&Text;a&&href',
|
||||||
|
一级:'js:let body=input.split("#")[1];let t=Math.round(new Date/1e3).toString();let key=md5("DS"+t+"DCC147D11943AF75");let url=input.split("#")[0];body=body+"&time="+t+"&key="+key;print(body);fetch_params.body=body;let html=post(url,fetch_params);let data=JSON.parse(html);VODS=data.list.map(function(it){it.vod_pic=urljoin2(input.split("/i")[0],it.vod_pic);return it});',
|
||||||
|
二级:{
|
||||||
|
"title":".slide-info-title&&Text;.slide-info:eq(3)--strong&&Text",
|
||||||
|
"img":".detail-pic&&data-original",
|
||||||
|
"desc":".fraction&&Text;.slide-info-remarks:eq(1)&&Text;.slide-info-remarks:eq(2)&&Text;.slide-info:eq(2)--strong&&Text;.slide-info:eq(1)--strong&&Text",
|
||||||
|
"content":"#height_limit&&Text",
|
||||||
|
"tabs":".anthology.wow.fadeInUp.animated&&.swiper-wrapper&&a",
|
||||||
|
"tab_text":".swiper-slide&&Text",
|
||||||
|
"lists":".anthology-list-box:eq(#id) li"
|
||||||
|
},
|
||||||
|
搜索:'json:list;name;pic;;id',
|
||||||
|
}
|
||||||
|
};
|
||||||
|
return JSON.parse(JSON.stringify(mubanDict));
|
||||||
|
}
|
||||||
|
var mubanDict = getMubans();
|
||||||
|
var muban = getMubans();
|
||||||
|
export default {muban,getMubans};
|
Loading…
Reference in a new issue