Add files via upload

This commit is contained in:
alantang 2023-09-01 15:15:59 +08:00 committed by GitHub
parent e47aec3462
commit 5d78ac738f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 234 additions and 1 deletions

142
js/dydhhy.js Normal file
View file

@ -0,0 +1,142 @@
var rule = {
title: 'dydhhy',
host: 'http://www.dydhhy.com',
homeUrl: '/',
url: '/tag/fyclass/page/fypage?',
filter_url: '{{fl.class}}',
filter: {},
searchUrl: '/?s=**',
searchable: 2,
quickSearch: 1,
filterable: 0,
headers: {
'User-Agent': 'MOBILE_UA',
'Cookie': ''
},
timeout: 5000,
class_name: '电视剧&电影&美剧&韩剧&日剧&英剧&2023&2022&2021',
class_url: 'tv&movie&美剧&韩剧&日剧&英剧&2023&2022&2021',
play_parse: true,
play_json: [{
re: '*',
json: {
parse: 0,
jx: 0
}
}],
lazy: '',
limit: 6,
推荐: 'div.clear:gt(1):has(img);.entry-title&&Text;img&&src;;a&&href',
一级: 'div.clear:gt(1):has(img);.entry-title&&Text;img&&src;;a&&href',
二级: {
title: ".single-excerpt&&Text",
img: "img&&src",
desc: ".entry-date&&Text",
content: "p&&Text",
tabs: `js: pdfh = jsp.pdfh;
pdfa = jsp.pdfa;
pd = jsp.pd;
TABS=[]
let d = pdfa(html, 'fieldset p 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("電驢");
}
if (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, 'fieldset p 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/")){
if (false){
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 (false){
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 (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]);
});`,
}, 搜索: 'div.clear:gt(0):has(img);img&&alt;img&&data-src;;a&&href',
}

View file

@ -256,7 +256,7 @@ let search_html = request( HOST + '/e/search/index.php', _fetch_params, true);
let d=[]; let d=[];
let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li'); let dlist = pdfa(search_html, 'div.mainleft&&ul#post_container&&li');
dlist.forEach(function(it){ dlist.forEach(function(it){
let title = pdfh(it, 'div.thumbnail img&&alt'); let title = pdfh(it, 'div.thumbnail img&&alt').replace( /(<([^>]+)>)/ig, '');
if (searchObj.quick === true){ if (searchObj.quick === true){
if (title.includes(KEY)){ if (title.includes(KEY)){
title = KEY; title = KEY;

91
js/yyets.js Normal file
View file

@ -0,0 +1,91 @@
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/'
},
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:
let new_html=request(rule.homeUrl + 'api/resource?keyword=' + encodeURIComponent(KEY) + '&type=default');
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)/.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);
`,
}