mirror of
https://github.com/alantang1977/X.git
synced 2024-11-05 18:23:09 +02:00
Add files via upload
This commit is contained in:
parent
9ac244d37d
commit
11a027f040
18 changed files with 378 additions and 126 deletions
|
@ -45,9 +45,9 @@ let tabse = false;
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
203
js/97tvs.js
Normal file
203
js/97tvs.js
Normal file
|
@ -0,0 +1,203 @@
|
|||
var rule = {
|
||||
title:'高清MP4吧',
|
||||
host:'https://www.97tvs.com',
|
||||
homeUrl: '/',
|
||||
url: '/fyclass/page/fypage?',
|
||||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
headers:{
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie':'',
|
||||
'Referer': 'http://www.97tvs.com/'
|
||||
},
|
||||
图片来源:'@Headers={"Accept":"*/*","Referer":"https://www.97tvs.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: "action&science&love&comedy&story&thriller&war&disaster&crime&cartoon&variety&sitcoms",
|
||||
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: pd(it, 'div.thumbnail&&a&&href',HOST)
|
||||
});
|
||||
});
|
||||
setResult(d);
|
||||
`,
|
||||
一级:`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: pd(it, 'div.thumbnail&&a&&href',HOST)
|
||||
});
|
||||
})
|
||||
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 p');
|
||||
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/")){
|
||||
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("電驢");
|
||||
}
|
||||
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('97tvs TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
let d = pdfa(html, 'div#post_content p');
|
||||
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('97tvs title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('97tvs burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
if (burl.startsWith("https://www.aliyundrive.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);
|
||||
}
|
||||
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 search_html = request(input)
|
||||
//log("97tvs 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);
|
||||
`,
|
||||
}
|
|
@ -38,7 +38,7 @@ var rule = {
|
|||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
TABS.push("夸克雲盤");
|
||||
TABS.push("夸克網盤");
|
||||
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
`,
|
||||
lists:`js:
|
||||
|
|
|
@ -152,7 +152,7 @@ let tabsq=[];
|
|||
d.forEach(function(it){
|
||||
let burl = pd(it, 'a&&href', HOST);
|
||||
if (burl.includes("pan.quark.cn")){
|
||||
tabsq.push("夸克雲盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.includes("www.aliyundrive.com")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}
|
||||
|
|
|
@ -45,9 +45,9 @@ let tabse = false;
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
51
js/dygang.js
51
js/dygang.js
|
@ -58,18 +58,18 @@ var rule = {
|
|||
tabs:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
TABS=[]
|
||||
let d = pdfa(html, '#dede_content table tbody tr a');
|
||||
let d = pdfa(html, '#dede_content table tbody tr');
|
||||
let tabsa = [];
|
||||
let tabsq = [];
|
||||
let tabsm = false;
|
||||
let tabse = false;
|
||||
let tabm3u8 = [];
|
||||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let burl = pd(it, 'a&&href',HOST);
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
@ -111,14 +111,14 @@ log('dygang TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
|||
log(TABS);
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
LISTS = [];
|
||||
let d = pdfa(html, '#dede_content table tbody tr a');
|
||||
let d = pdfa(html, '#dede_content table tbody tr');
|
||||
let lista = [];
|
||||
let listq = [];
|
||||
let listm = [];
|
||||
let liste = [];
|
||||
let listm3u8 = {};
|
||||
d.forEach(function(it){
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
let burl = pd(it, 'a&&href',HOST);
|
||||
let title = pdfh(it, 'a&&Text');
|
||||
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
|
@ -153,51 +153,12 @@ 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);
|
||||
}
|
||||
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]);
|
||||
});
|
||||
|
|
|
@ -31,11 +31,11 @@ var rule = {
|
|||
推荐:'',
|
||||
一级:'',
|
||||
二级:`js:
|
||||
VOD.vod_play_from = "夸克雲盤";
|
||||
VOD.vod_play_from = "夸克網盤";
|
||||
VOD.vod_remarks = detailUrl;
|
||||
VOD.vod_actor = "沒有二級,只有一級鏈接直接推送播放";
|
||||
VOD.vod_content = MY_URL;
|
||||
VOD.vod_play_url = "夸克雲盤$" + detailUrl;
|
||||
VOD.vod_play_url = "夸克網盤$" + detailUrl;
|
||||
`,
|
||||
搜索:`js:
|
||||
let postJson = {
|
||||
|
|
|
@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a');
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
@ -64,9 +64,9 @@ d = pdfa(html, 'div#down p.down-list3 a');
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
|
@ -51,9 +51,9 @@ let d = pdfa(html, '#post_content p a');
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
@ -64,9 +64,9 @@ d = pdfa(html, 'div#down p.down-list3 a');
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
|
@ -63,7 +63,7 @@ if (false && d.length>1){
|
|||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
d.forEach(function(it) {
|
||||
TABS.push("夸克雲盤" + index);
|
||||
TABS.push("夸克網盤" + index);
|
||||
index = index + 1;
|
||||
});
|
||||
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
||||
|
|
|
@ -44,7 +44,7 @@ d.forEach(function(it) {
|
|||
if (!/(猜你|喜欢|剧情|热播)/.test(name)){
|
||||
log("libvio tabs name>>>>>>>>>>>>>>>" + name);
|
||||
if (name.includes("夸克")){
|
||||
tabsq.push("夸克雲盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (name.includes("阿里")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}else{
|
||||
|
|
|
@ -189,7 +189,7 @@ playGroups.forEach(function (it) {
|
|||
haveDelay = true;
|
||||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
TABS.push("夸克雲盤" + groupIndex);
|
||||
TABS.push("夸克網盤" + groupIndex);
|
||||
}
|
||||
groupIndex = groupIndex + 1;
|
||||
}
|
||||
|
|
|
@ -189,7 +189,7 @@ playGroups.forEach(function (it) {
|
|||
haveDelay = true;
|
||||
TABS.push("選擇右側綫路");
|
||||
}
|
||||
TABS.push("夸克雲盤" + groupIndex);
|
||||
TABS.push("夸克網盤" + groupIndex);
|
||||
}
|
||||
groupIndex = groupIndex + 1;
|
||||
}
|
||||
|
|
|
@ -45,9 +45,9 @@ let tabse = false;
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
130
js/rrdyw.js
Normal file
130
js/rrdyw.js
Normal file
|
@ -0,0 +1,130 @@
|
|||
var rule = {
|
||||
title: 'RRDY網',
|
||||
host: 'https://www.rrdynb.com',
|
||||
homeUrl: '/',
|
||||
url: '/fyclass_fypage.html?',
|
||||
filter_url: '{{fl.class}}',
|
||||
filter: {},
|
||||
searchUrl: '/plus/search.php?q=**&pagesize=10&submit=',
|
||||
searchable: 2,
|
||||
quickSearch: 1,
|
||||
filterable: 0,
|
||||
headers: {
|
||||
'User-Agent': 'PC_UA',
|
||||
'Cookie': ''
|
||||
},
|
||||
timeout: 5000,
|
||||
class_name: '影视&電視劇&老電影&動漫',
|
||||
class_url: 'movie/list_2&dianshiju/list_6&zongyi/list_10&dongman/list_13',
|
||||
play_parse: true,
|
||||
play_json: [{
|
||||
re: '*',
|
||||
json: {
|
||||
parse: 0,
|
||||
jx: 0
|
||||
}
|
||||
}],
|
||||
lazy: '',
|
||||
limit: 6,
|
||||
推荐: '',
|
||||
一级: 'li:has(img);img&&alt;img&&data-original;;a&&href',
|
||||
二级: {
|
||||
title: "h1&&Text",
|
||||
img: "img&&src",
|
||||
desc: "",
|
||||
content: "span&&Text",
|
||||
tabs: `js: pdfh = jsp.pdfh;
|
||||
pdfa = jsp.pdfa;
|
||||
pd = jsp.pd;
|
||||
TABS = []
|
||||
let d = pdfa(html, 'span 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/")) {
|
||||
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("電驢");
|
||||
}
|
||||
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('alyps TABS >>>>>>>>>>>>>>>>>>' + TABS);`,
|
||||
lists: `js: log(TABS);
|
||||
pdfh = jsp.pdfh;
|
||||
pdfa = jsp.pdfa;
|
||||
pd = jsp.pd;
|
||||
LISTS = [];
|
||||
let d = pdfa(html, 'span 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('alyps title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
|
||||
log('alyps burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
|
||||
let loopresult = title + '$' + burl;
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")) {
|
||||
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);
|
||||
}
|
||||
loopresult = title + '$' + burl;
|
||||
lista.push(loopresult);
|
||||
} else if (burl.startsWith("https://pan.quark.cn/s/")) {
|
||||
if (TABS.length == 1) {
|
||||
burl = burl.replace("?entry=sjss", ""),
|
||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&confirm=0&url=" + encodeURIComponent(burl);
|
||||
} else {
|
||||
burl = burl.replace("?entry=sjss", ""),
|
||||
burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(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.reverse());
|
||||
}
|
||||
if (liste.length > 0) {
|
||||
LISTS.push(liste.reverse());
|
||||
}
|
||||
lista.forEach(function(it) {
|
||||
LISTS.push([it]);
|
||||
});
|
||||
listq.forEach(function(it) {
|
||||
LISTS.push([it]);
|
||||
});`,
|
||||
|
||||
},
|
||||
搜索: 'li:has(img);h2&&Text;img&&data-original;.tags&&Text;a&&href',
|
||||
}
|
31
js/tzfile.js
31
js/tzfile.js
|
@ -6,7 +6,7 @@ var rule = {
|
|||
filter_url:'{{fl.class}}',
|
||||
filter:{
|
||||
},
|
||||
searchUrl: '/?s=**',
|
||||
searchUrl: '/?s=**&type=post',
|
||||
searchable:2,
|
||||
quickSearch:0,
|
||||
filterable:0,
|
||||
|
@ -29,7 +29,6 @@ var rule = {
|
|||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
// 推荐:'main#main article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
|
||||
推荐:'*',
|
||||
一级:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
|
@ -37,35 +36,31 @@ let d = [];
|
|||
log("tzfiles input>>>>>>>>>>>>>>"+input);
|
||||
let html = request(input);
|
||||
//log("tzfiles 1level html>>>>>>>>>>>>>>"+html);
|
||||
let list = pdfa(html, 'main#main article:has(img)');
|
||||
let list = pdfa(html, '#primary-home ul li:has(img)');
|
||||
list.forEach(function(it) {
|
||||
d.push({
|
||||
title: pdfh(it, 'a&&title'),
|
||||
desc: pdfh(it, 'div.entry-wrapper a&&Text'),
|
||||
pic_url: 'http://127.0.0.1:10079/i/0/s/'+pd(it, 'img&&data-src', HOST),
|
||||
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),
|
||||
url: pd(it, 'a&&href', HOST)
|
||||
});
|
||||
})
|
||||
setResult(d);
|
||||
`,
|
||||
//一级:`js:
|
||||
//let html=request(input);
|
||||
//log("html>>>>>>>>>>>>>>>>"+html);
|
||||
//`,
|
||||
二级:{
|
||||
title:"#app .container header h1&&Text",
|
||||
img:"#main article div.entry-content img&&src",
|
||||
desc:"#app .container header .meta-date time&&datetime",
|
||||
content:"#main article .entry-content&&Text",
|
||||
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, '#main article div.entry-content p');
|
||||
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("夸克雲盤");
|
||||
tabsq.push("夸克網盤");
|
||||
} else if (purl.includes("www.aliyundrive.com")){
|
||||
tabsq.push("阿里雲盤");
|
||||
}
|
||||
|
@ -85,7 +80,7 @@ log('tzfile TABS >>>>>>>>>>>>>>>>>>' + TABS);
|
|||
log(TABS);
|
||||
LISTS=[];
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = pdfa(html, '#main article div.entry-content p');
|
||||
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)/.test(purl)){
|
||||
|
@ -105,5 +100,5 @@ d.forEach(function(it) {
|
|||
`,
|
||||
|
||||
},
|
||||
搜索:'main#main div.container article:has(img);a&&title;img&&data-src;div.entry-wrapper a&&Text;a&&href',
|
||||
搜索:'#primary-home ul li:has(img);img&&alt;img&&src;div.post-info div.list-fotter time.b2timeago&&Text;a&&href',
|
||||
}
|
||||
|
|
41
js/xb6v.js
41
js/xb6v.js
|
@ -27,7 +27,6 @@ var rule = {
|
|||
}],
|
||||
lazy:'',
|
||||
limit:6,
|
||||
推荐:'',
|
||||
推荐:`js:
|
||||
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
|
||||
let d = [];
|
||||
|
@ -95,9 +94,9 @@ let tabm3u8 = [];
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
@ -181,42 +180,6 @@ 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);
|
||||
}
|
||||
|
|
|
@ -45,9 +45,9 @@ let tabse = false;
|
|||
d.forEach(function(it) {
|
||||
let burl = pdfh(it, 'a&&href');
|
||||
if (burl.startsWith("https://www.aliyundrive.com/s/")){
|
||||
tabsa.push("阿里云盤");
|
||||
tabsa.push("阿里雲盤");
|
||||
}else if (burl.startsWith("https://pan.quark.cn/s/")){
|
||||
tabsq.push("夸克云盤");
|
||||
tabsq.push("夸克網盤");
|
||||
}else if (burl.startsWith("magnet")){
|
||||
tabsm = true;
|
||||
}else if (burl.startsWith("ed2k")){
|
||||
|
|
Loading…
Reference in a new issue