X/js/tzfile.js

105 lines
2.8 KiB
JavaScript
Raw Normal View History

2023-09-03 13:59:13 +03:00
var rule = {
title:'团长资源',
host:'https://t-rex.tzfile.com',
homeUrl:'/',
url: '/fyclass/page/fypage?',
filter_url:'{{fl.class}}',
filter:{
},
2023-09-11 10:33:14 +03:00
searchUrl: '/?s=**&type=post',
2023-09-03 13:59:13 +03:00
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': 'PC_UA',
'Accept': '*/*',
'Referer': 'https://t-rex.tzfile.com/'
},
2023-09-04 10:17:48 +03:00
图片来源:'@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"}',
2023-09-03 13:59:13 +03:00
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);
2023-09-11 10:33:14 +03:00
let list = pdfa(html, '#primary-home ul li:has(img)');
2023-09-03 13:59:13 +03:00
list.forEach(function(it) {
d.push({
2023-09-11 10:33:14 +03:00
title: pdfh(it, 'img&&alt'),
desc: pdfh(it, 'div.post-info div.list-footer time.b2timeago&&Text') + '/' + pdfh(it, 'div.post-info div.list-footer a&&Text'),
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&src', HOST),
2023-09-03 13:59:13 +03:00
url: pd(it, 'a&&href', HOST)
});
})
setResult(d);
`,
二级:{
2023-09-11 10:33:14 +03:00
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",
2023-09-03 13:59:13 +03:00
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[];
2023-09-11 10:33:14 +03:00
let d = pdfa(html, '#primary-home article div.entry-content p');
2023-09-03 13:59:13 +03:00
let tabsq=[];
d.forEach(function(it) {
let purl = pd(it, 'a&&href', HOST);
if (purl.includes("pan.quark.cn")){
2023-09-11 10:33:14 +03:00
tabsq.push("夸克網盤");
2023-09-03 13:59:13 +03:00
} else if (purl.includes("www.aliyundrive.com")){
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;
2023-09-11 10:33:14 +03:00
let d = pdfa(html, '#primary-home article div.entry-content p');
2023-09-03 13:59:13 +03:00
d.forEach(function(it) {
let purl = pd(it, 'a&&href', HOST);
if (/(pan.quark.cn|www.aliyundrive.com)/.test(purl)){
let type="ali";
if (purl.includes("pan.quark.cn")){
type="quark";
} else if (purl.includes("www.aliyundrive.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)]);
}
});
`,
},
2023-09-11 10:33:14 +03:00
搜索:'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info div.list-fotter time.b2timeago&&Text;a&&href',
2023-09-03 13:59:13 +03:00
}