上传文件至 js

This commit is contained in:
aliluya 2023-10-20 08:31:21 +00:00
parent 02f9b4de05
commit eb21dd5d7e
5 changed files with 1114 additions and 0 deletions

64
js/NY影院.js Normal file
View File

@ -0,0 +1,64 @@
muban.短视2.二级.title = '.slide-info-title&&Text;.hl-ma0&&Text';
muban.短视2.二级.img = '.detail-pic&&img&&data-src';
muban.短视2.二级.desc = '.fraction&&Text;;;.slide-info:eq(3)--strong&&Text;.slide-info:eq(2)--strong&&Text';
var rule={
title:'NY影院',
模板:'短视2',
host:'https://www.nycvod.com',
homeUrl:'/index.php/label/rb.html',
url: '/index.php/api/vod#type=fyfilter&page=fypage',
detailUrl:'/voddetail/fyid.html',
filterable:1,//是否启用分类筛选,
filter_url:'{{fl.cateId}}',
filter:{
"1":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"1"},{"n":"动作片","v":"9"},{"n":"喜剧片","v":"10"},{"n":"奇幻片","v":"11"},{"n":"科幻片","v":"12"},{"n":"恐怖片","v":"22"},{"n":"惊悚片","v":"27"},{"n":"悬疑片","v":"23"},{"n":"爱情片","v":"21"},{"n":"战争片","v":"20"},{"n":"剧情片","v":"6"},{"n":"网络电影","v":"24"},{"n":"犯罪片","v":"26"},{"n":"伦理片","v":"8"},{"n":"灾难片","v":"7"},{"n":"动画电影","v":"25"},{"n":"冒险片","v":"28"},{"n":"同性片","v":"44"},{"n":"纪录片","v":"29"},{"n":"歌舞片","v":"45"},{"n":"经典片","v":"46"}]}],
"2":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"2"},{"n":"国产剧","v":"30"},{"n":"欧美剧","v":"47"},{"n":"日韩剧","v":"18"},{"n":"港台剧","v":"16"},{"n":"新马泰剧","v":"14"},{"n":"其他剧","v":"13"}]}],
"3":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"3"},{"n":"国产综艺","v":"31"},{"n":"日韩综艺","v":"32"},{"n":"欧美综艺","v":"34"},{"n":"港台综艺","v":"35"},{"n":"其他综艺","v":"37"}]}],
"4":[{"key":"cateId","name":"分类","value":[{"n":"全部","v":"4"},{"n":"日韩动漫","v":"38"},{"n":"国产动漫","v":"39"},{"n":"欧美动漫","v":"40"},{"n":"港台动漫","v":"42"},{"n":"其他动漫","v":"43"}]}]
},
filter_def:{
1:{cateId:'1'},
2:{cateId:'2'},
3:{cateId:'3'},
4:{cateId:'4'},
5:{cateId:'5'}
},
// class_name:'电影&电视剧&综艺&动漫&竞技体育',
// class_url:'1&2&3&4&5',
class_parse:'.swiper-wrapper&&li.swiper-slide;a--em&&Text;a&&href;/(\\d+).html',
class_name:'',
class_url:'',
play_parse:true,
lazy:`js:
var html = JSON.parse(request(input).match(/r player_.*?=(.*?)</)[1]);
var url = html.url;
if (html.encrypt == '1') {
url = unescape(url)
} else if (html.encrypt == '2') {
url = unescape(base64Decode(url))
}
if (/m3u8|mp4/.test(url)) {
input = url
} else {
input
}
`,
推荐:'.list-vod .public-list-box;a&&title;.lazy&&data-src;.public-list-prb&&Text;a&&href',
double: false, // 推荐内容是否双层定位
一级:`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
});
`,
}

435
js/TVB云播.js Normal file
View File

@ -0,0 +1,435 @@
var rule={
title:'TVA云播',
//模板:'mxpro',
host:'http://www.tvyb03.com',
url:'vod/show/id/fyfilter.html',
filterable:1,//是否启用分类筛选,
filter_url:'{{fl.cateId}}{{fl.area}}{{fl.by}}{{fl.class}}{{fl.lang}}{{fl.letter}}/page/fypage{{fl.year}}',
class_name:'电影&电视剧&综艺&动漫&日韩剧&国产剧&欧美剧&港台剧',
class_url:'1&2&3&4&16&13&15&14',
filter: {
"1":[
{
"key":"cateId",
"name":"类型",
"value":[
{"n":"全部","v":"1"},
{"n":"动作片","v":"6"},
{"n":"喜剧片","v":"7"},
{"n":"爱情片","v":"8"},
{"n":"科幻片","v":"9"},
{"n":"恐怖片","v":"10"},
{"n":"剧情片","v":"11"},
{"n":"战争片","v":"12"}
]
},
{
"key":"class",
"name":"剧情",
"value":[
{"n":"全部","v":""},
{"n":"喜剧","v":"/class/喜剧"},
{"n":"爱情","v":"/class/爱情"},
{"n":"恐怖","v":"/class/恐怖"},
{"n":"动作","v":"/class/动作"},
{"n":"科幻","v":"/class/科幻"},
{"n":"剧情","v":"/class/剧情"},
{"n":"战争","v":"/class/战争"},
{"n":"警匪","v":"/class/警匪"},
{"n":"犯罪","v":"/class/犯罪"},
{"n":"动画","v":"/class/动画"},
{"n":"奇幻","v":"/class/奇幻"},
{"n":"武侠","v":"/class/武侠"},
{"n":"冒险","v":"/class/冒险"},
{"n":"枪战","v":"/class/枪战"},
{"n":"悬疑","v":"/class/悬疑"},
{"n":"惊悚","v":"/class/惊悚"},
{"n":"经典","v":"/class/经典"},
{"n":"青春","v":"/class/青春"},
{"n":"文艺","v":"/class/文艺"},
{"n":"微电影","v":"/class/微电影"},
{"n":"古装","v":"/class/古装"},
{"n":"历史","v":"/class/历史"},
{"n":"运动","v":"/class/运动"},
{"n":"农村","v":"/class/农村"},
{"n":"儿童","v":"/class/儿童"},
{"n":"网络电影","v":"/class/网络电影"}
]
},
{
"key":"area",
"name":"地区",
"value":[
{"n":"全部","v":""},
{"n":"大陆","v":"/area/大陆"},
{"n":"香港","v":"/area/香港"},
{"n":"台湾","v":"/area/台湾"},
{"n":"美国","v":"/area/美国"},
{"n":"法国","v":"/area/法国"},
{"n":"英国","v":"/area/英国"},
{"n":"日本","v":"/area/日本"},
{"n":"韩国","v":"/area/韩国"},
{"n":"德国","v":"/area/德国"},
{"n":"泰国","v":"/area/泰国"},
{"n":"印度","v":"/area/印度"},
{"n":"意大利","v":"/area/意大利"},
{"n":"西班牙","v":"/area/西班牙"},
{"n":"加拿大","v":"/area/加拿大"},
{"n":"其他","v":"/area/其他"}
]
},
{
"key":"lang",
"name":"语言",
"value":[
{"n":"全部","v":""},
{"n":"国语","v":"/lang/国语"},
{"n":"英语","v":"/lang/英语"},
{"n":"粤语","v":"/lang/粤语"},
{"n":"韩语","v":"/lang/韩语"},
{"n":"日语","v":"/lang/日语"},
{"n":"法语","v":"/lang/法语"},
{"n":"德语","v":"/lang/德语"},
{"n":"其它","v":"/lang/其它"}
]
},
{
"key":"year",
"name":"年份",
"value":[
{"n":"全部","v":""},
{"n":"2023","v":"/year/2023"},
{"n":"2022","v":"/year/2022"},
{"n":"2021","v":"/year/2021"},
{"n":"2020","v":"/year/2020"},
{"n":"2019","v":"/year/2019"},
{"n":"2018","v":"/year/2018"},
{"n":"2017","v":"/year/2017"},
{"n":"2016","v":"/year/2016"},
{"n":"2015","v":"/year/2015"},
{"n":"2014","v":"/year/2014"},
{"n":"2013","v":"/year/2013"},
{"n":"2012","v":"/year/2012"},
{"n":"2011","v":"/year/2011"},
{"n":"2010","v":"/year/2010"},
{"n":"2009","v":"/year/2009"},
{"n":"2008","v":"/year/2008"},
{"n":"2007","v":"/year/2007"},
{"n":"2006","v":"/year/2006"},
{"n":"2005","v":"/year/2005"},
{"n":"2004","v":"/year/2004"}
]
},
{
"key":"by",
"name":"排序",
"value":[
{"n":"全部","v":""},
{"n":"时间","v":"/by/time"},
{"n":"人气","v":"/by/hits"},
{"n":"评分","v":"/by/score"}
]
}
],
"2":[
{
"key":"cateId",
"name":"类型",
"value":[
{"n":"全部","v":"2"},
{"n":"国产剧","v":"13"},
{"n":"港台剧","v":"14"},
{"n":"日韩剧","v":"15"},
{"n":"欧美剧","v":"16"}
]
},
{
"key":"class",
"name":"剧情",
"value":[
{"n":"全部","v":""},
{"n":"古装","v":"/class/古装"},
{"n":"青春","v":"/class/青春"},
{"n":"偶像","v":"/class/偶像"},
{"n":"喜剧","v":"/class/喜剧"},
{"n":"家庭","v":"/class/家庭"},
{"n":"犯罪","v":"/class/犯罪"},
{"n":"动作","v":"/class/动作"},
{"n":"奇幻","v":"/class/奇幻"},
{"n":"剧情","v":"/class/剧情"},
{"n":"历史","v":"/class/历史"},
{"n":"经典","v":"/class/经典"},
{"n":"乡村","v":"/class/乡村"},
{"n":"情景","v":"/class/情景"},
{"n":"商战","v":"/class/商战"},
{"n":"网剧","v":"/class/网剧"},
{"n":"其他","v":"/class/其他"}
]
},
{
"key":"area",
"name":"地区",
"value":[
{"n":"全部","v":""},
{"n":"内地","v":"/area/内地"},
{"n":"韩国","v":"/area/韩国"},
{"n":"香港","v":"/area/香港"},
{"n":"台湾","v":"/area/台湾"},
{"n":"日本","v":"/area/日本"},
{"n":"美国","v":"/area/美国"},
{"n":"泰国","v":"/area/泰国"},
{"n":"英国","v":"/area/英国"},
{"n":"新加坡","v":"/area/新加坡"},
{"n":"其他","v":"/area/其他"}
]
},
{
"key":"year",
"name":"年份",
"value":[
{"n":"全部","v":""},
{"n":"2023","v":"/year/2023"},
{"n":"2022","v":"/year/2022"},
{"n":"2021","v":"/year/2021"},
{"n":"2020","v":"/year/2020"},
{"n":"2019","v":"/year/2019"},
{"n":"2018","v":"/year/2018"},
{"n":"2017","v":"/year/2017"},
{"n":"2016","v":"/year/2016"},
{"n":"2015","v":"/year/2015"},
{"n":"2014","v":"/year/2014"},
{"n":"2013","v":"/year/2013"},
{"n":"2012","v":"/year/2012"},
{"n":"2011","v":"/year/2011"},
{"n":"2010","v":"/year/2010"},
{"n":"2009","v":"/year/2009"},
{"n":"2008","v":"/year/2008"},
{"n":"2007","v":"/year/2007"},
{"n":"2006","v":"/year/2006"},
{"n":"2005","v":"/year/2005"},
{"n":"2004","v":"/year/2004"}
]
},
{
"key":"lang",
"name":"语言",
"value":[
{"n":"全部","v":""},
{"n":"国语","v":"/lang/国语"},
{"n":"英语","v":"/lang/英语"},
{"n":"粤语","v":"/lang/粤语"},
{"n":"韩语","v":"/lang/韩语"},
{"n":"日语","v":"/lang/日语"},
{"n":"其它","v":"/lang/其它"}
]
},
{
"key":"by",
"name":"排序",
"value":[
{"n":"全部","v":""},
{"n":"时间","v":"/by/time"},
{"n":"人气","v":"/by/hits"},
{"n":"评分","v":"/by/score"}
]
}
],
"3":[
{
"key":"class",
"name":"剧情",
"value":[
{"n":"全部","v":""},
{"n":"选秀","v":"/class/选秀"},
{"n":"情感","v":"/class/情感"},
{"n":"访谈","v":"/class/访谈"},
{"n":"播报","v":"/class/播报"},
{"n":"旅游","v":"/class/旅游"},
{"n":"音乐","v":"/class/音乐"},
{"n":"美食","v":"/class/美食"},
{"n":"纪实","v":"/class/纪实"},
{"n":"曲艺","v":"/class/曲艺"},
{"n":"生活","v":"/class/生活"},
{"n":"游戏互动","v":"/class/游戏互动"},
{"n":"财经","v":"/class/财经"},
{"n":"求职","v":"/class/求职"}
]
},
{
"key":"area",
"name":"地区",
"value":[
{"n":"全部","v":""},
{"n":"内地","v":"/area/内地"},
{"n":"港台","v":"/area/港台"},
{"n":"日韩","v":"/area/日韩"},
{"n":"欧美","v":"/area/欧美"}
]
},
{
"key":"lang",
"name":"语言",
"value":[
{"n":"全部","v":""},
{"n":"国语","v":"/lang/国语"},
{"n":"英语","v":"/lang/英语"},
{"n":"粤语","v":"/lang/粤语"},
{"n":"韩语","v":"/lang/韩语"},
{"n":"日语","v":"/lang/日语"},
{"n":"其它","v":"/lang/其它"}
]
},
{
"key":"year",
"name":"年份",
"value":[
{"n":"全部","v":""},
{"n":"2023","v":"/year/2023"},
{"n":"2022","v":"/year/2022"},
{"n":"2021","v":"/year/2021"},
{"n":"2020","v":"/year/2020"},
{"n":"2019","v":"/year/2019"},
{"n":"2018","v":"/year/2018"},
{"n":"2017","v":"/year/2017"},
{"n":"2016","v":"/year/2016"},
{"n":"2015","v":"/year/2015"},
{"n":"2014","v":"/year/2014"},
{"n":"2013","v":"/year/2013"},
{"n":"2012","v":"/year/2012"},
{"n":"2011","v":"/year/2011"},
{"n":"2010","v":"/year/2010"},
{"n":"2009","v":"/year/2009"},
{"n":"2008","v":"/year/2008"},
{"n":"2007","v":"/year/2007"},
{"n":"2006","v":"/year/2006"},
{"n":"2005","v":"/year/2005"},
{"n":"2004","v":"/year/2004"}
]
},
{
"key":"by",
"name":"排序",
"value":[
{"n":"全部","v":""},
{"n":"时间","v":"/by/time"},
{"n":"人气","v":"/by/hits"},
{"n":"评分","v":"/by/score"}
]
}
],
"4":[
{
"key":"class",
"name":"剧情",
"value":[
{"n":"全部","v":""},
{"n":"情感","v":"/class/情感"},
{"n":"科幻","v":"/class/科幻"},
{"n":"热血","v":"/class/热血"},
{"n":"推理","v":"/class/推理"},
{"n":"搞笑","v":"/class/搞笑"},
{"n":"冒险","v":"/class/冒险"},
{"n":"萝莉","v":"/class/萝莉"},
{"n":"校园","v":"/class/校园"},
{"n":"动作","v":"/class/动作"},
{"n":"机战","v":"/class/机战"},
{"n":"运动","v":"/class/运动"},
{"n":"战争","v":"/class/战争"},
{"n":"少年","v":"/class/少年"},
{"n":"少女","v":"/class/少女"},
{"n":"社会","v":"/class/社会"},
{"n":"原创","v":"/class/原创"},
{"n":"亲子","v":"/class/亲子"},
{"n":"益智","v":"/class/益智"},
{"n":"励志","v":"/class/励志"},
{"n":"其它","v":"/class/其他"}
]
},
{
"key":"area",
"name":"地区",
"value":[
{"n":"全部","v":""},
{"n":"国产","v":"/area/国产"},
{"n":"日本","v":"/area/日本"},
{"n":"欧美","v":"/area/欧美"},
{"n":"其他","v":"/area/其他"}
]
},
{
"key":"lang",
"name":"语言",
"value":[
{"n":"全部","v":""},
{"n":"国语","v":"/lang/国语"},
{"n":"英语","v":"/lang/英语"},
{"n":"粤语","v":"/lang/粤语"},
{"n":"韩语","v":"/lang/韩语"},
{"n":"日语","v":"/lang/日语"},
{"n":"其它","v":"/lang/其它"}
]
},
{
"key":"year",
"name":"年份",
"value":[
{"n":"全部","v":""},
{"n":"2023","v":"/year/2023"},
{"n":"2022","v":"/year/2022"},
{"n":"2021","v":"/year/2021"},
{"n":"2020","v":"/year/2020"},
{"n":"2019","v":"/year/2019"},
{"n":"2018","v":"/year/2018"},
{"n":"2017","v":"/year/2017"},
{"n":"2016","v":"/year/2016"},
{"n":"2015","v":"/year/2015"},
{"n":"2014","v":"/year/2014"},
{"n":"2013","v":"/year/2013"},
{"n":"2012","v":"/year/2012"},
{"n":"2011","v":"/year/2011"},
{"n":"2010","v":"/year/2010"},
{"n":"2009","v":"/year/2009"},
{"n":"2008","v":"/year/2008"},
{"n":"2007","v":"/year/2007"},
{"n":"2006","v":"/year/2006"},
{"n":"2005","v":"/year/2005"},
{"n":"2004","v":"/year/2004"}
]
},
{
"key":"by",
"name":"排序",
"value":[
{"n":"全部","v":""},
{"n":"时间","v":"/by/time"},
{"n":"人气","v":"/by/hits"},
{"n":"评分","v":"/by/score"}
]
}
]
},
filter_def:{
1:{cateId:'1'},
2:{cateId:'2'},
3:{cateId:'3'},
4:{cateId:'4'},
13:{cateId:'13'},
14:{cateId:'14'},
15:{cateId:'15'},
16:{cateId:'16'}
},
searchUrl:'/vod/search.html?wd=**&submit=',
searchable:2,//是否启用全局搜索,
quickSearch:0,//是否启用快速搜索,
filterable:0,//是否启用分类筛选,
play_parse:true,
lazy:'',
limit:6,
// 推荐:'ul.myui-vodlist;ul li;*;*;*;*',
推荐:'ul.myui-vodlist;li;*;*;*;*',
// 推荐:'ul.myui-vodlist;ul&&li;*;*;*;*', // 此写法本地js无效
double:true, // 推荐内容是否双层定位
一级:'.myui-vodlist__box;a&&title;.lazyload&&data-original;.tag&&Text;a&&href',
二级:{"title":"h1&&Text;.data:eq(0) a:eq(0)&&Text","img":".lazyload&&data-original","desc":";.data:eq(0) a:eq(2)&&Text;.data:eq(0) a:eq(1)&&Text;.data:eq(2)&&Text;.data:eq(3)&&Text","content":".text-collapse span&&Text","tabs":".myui-panel__head h3","lists":".myui-content__list:eq(#id) li"},
搜索:'ul.myui-vodlist__media li;*;*;*;*',
}

307
js/meijumi.js Normal file
View File

@ -0,0 +1,307 @@
var rule = {
title:'美剧迷[磁]',
//host:'https://www.meijumi.net',
//homeUrl:'/',
//url: '/fyclass/page/fypage/?',
host:'http://127.0.0.1:10078',
homeUrl:'/p/0/s/https://www.meijumi.net/',
url: '/p/0/s/https://www.meijumi.net/fyclass/page/fypage/?',
filter_url:'{{fl.class}}',
filter:{
},
searchUrl: '/p/0/s/https://www.meijumi.net/?s=**',
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': 'PC_UA',
'Accept': '*/*',
'Referer': 'https://www.meijumi.net/'
},
timeout:5000,
class_name:'最近更新&美剧&灵异/惊悚&魔幻/科幻&罪案/动作谍战&剧情/历史&喜剧&律政/医务&动漫/动画&纪录片&综艺/真人秀&英剧&韩剧',
class_url:'news&usa&usa/xuanyi&usa/mohuan&usa/zuian&usa/qinggan&usa/xiju&usa/yiwu&usa/katong&usa/jilu&usa/zongyi&en&hanju',
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 items;
items = pdfa(html, 'main#main div.hd ul li:has(>a>img)');
items.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'li&&Text'),
desc: '',
pic_url: pd(it, 'img&&src', HOST),
url: burl
});
});
items = pdfa(html, 'main#main div.hd div.huandeng span:has(>a>img)');
if (typeof items !== "undefined") {
items.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'span&&Text'),
desc: '',
pic_url: pd(it, 'img&&src', HOST),
url: burl
});
});
}
items = pdfa(html, 'main#main div#pingbi_gg div:has(>div>a>img)');
if (typeof items !== "undefined") {
items.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'a&&title'),
desc: pdfh(it, 'div&&span b&&Text'),
pic_url: pd(it, 'img&&src', HOST),
url: burl
});
});
}
items = pdfa(html, 'main#main div#pingbi_gg div:has(>header>div>a)');
if (typeof items !== "undefined") {
items.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'header a&&Text'),
desc: pdfh(it, 'header&&div span&&Text'),
pic_url: pd(it, 'figure img&&src', HOST),
url: burl
});
});
}
setResult(d);
`,
一级:'',
一级:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let d = [];
if (MY_CATE !== "news" ){
let html = request(input);
let list = pdfa(html, 'div#post_list_box article');
list.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'header a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'header a&&Text'),
desc: pdfh(it, 'div.entry-content span:eq(1)&&Text'),
pic_url: pd(it, 'figure img&&src', HOST),
url: burl
});
})
}else{
input = rule.homeUrl + MY_CATE + '/';
let html = request(input);
let list = pdfa(html, 'article ol&&li');
list.forEach(it => {
let burl = rule.homeUrl.replace("https://www.meijumi.net/","") + pd(it, 'a&&href').replace(rule.host, "https://www.meijumi.net");
d.push({
title: pdfh(it, 'a&&Text'),
desc: pdfh(it, 'li&&span:eq(3)&&Text') + ' / 更新' + pdfh(it, 'li&&span:eq(1)&&Text'),
pic_url: '',
url: burl
});
})
}
setResult(d);
`,
二级:{
title:"article&&header&&h1&&Text",
img:"article div.single-content img&&src",
desc:"article div.single-content blockquote&&Text",
content:"article div.single-content table&&Text",
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let playGroups = [];
let d = pdfa(html, 'article div.single-content&&p:has(>a)');
d.forEach(function(it) {
let playObj = {"ali":{},"quark":{},"magnet":{}};
let playUrls = pdfa(it, 'a');
let title="";
playUrls.forEach(function(playUrl) {
let purl = pdfh(playUrl, 'a&&href');
if (true || title === ""){
title = pdfh(playUrl, 'a&&Text');
}
if (purl.startsWith("magnet")){
let magfn = title;
try {
magfn = purl.match(/(^|&)dn=([^&]*)(&|$)/)[2];
}catch(e){
magfn = title;
}
let resolution = "unknown";
try {
resolution = magfn.match(/(1080|720|2160|4k|4K)/)[1];
}catch(e){
resolution = "unknown";
}
magfn = resolution + "." + magfn;
log("tabs magnet filename>>>>>>>>>>>" + magfn);
playObj["magnet"][purl]=magfn;
}else if (purl.startsWith("https://www.aliyundrive.com/s/")){
playObj["ali"][purl]=title;
}else if (purl.startsWith("https://pan.quark.cn/s/")){
playObj["quark"][purl]=title;
}
});
playGroups.push(playObj);
});
LISTS.push(playGroups);
let groupIndex = 1;
let haveDelay = false;
playGroups.forEach(function (it) {
let magCount = Object.keys(it["magnet"]).length;
let aliCount = Object.keys(it["ali"]).length;
let quarkCount = Object.keys(it["quark"]).length;
let haveMag = false;
if (magCount==0 && aliCount!==1 && quarkCount!==1 ){
}else{
if (magCount>0){
TABS.push("磁力" + groupIndex);
haveMag = true;
haveDelay = true;
}
if (aliCount === 1){
if (false && !haveMag && !haveDelay){
haveDelay = true;
TABS.push("選擇右側綫路");
}
TABS.push("阿里雲盤" + groupIndex);
}
if (quarkCount === 1){
if (false && !haveMag && !haveDelay){
haveDelay = true;
TABS.push("選擇右側綫路");
}
TABS.push("夸克網盤" + groupIndex);
}
groupIndex = groupIndex + 1;
}
});
log('meijumi TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
lists:`js:
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
let playGroups = [];
if (false && LISTS.length>0 && typeof LISTS[0] === "object"){
playGroups = LISTS.shift();
}else{
let d = pdfa(html, 'article div.single-content&&p:has(>a)');
d.forEach(function(it) {
let playObj = {"ali":{},"quark":{},"magnet":{}};
let playUrls = pdfa(it, 'a');
let title="";
playUrls.forEach(function(playUrl) {
let purl = pdfh(playUrl, 'a&&href');
if (true || title === ""){
title = pdfh(playUrl, 'a&&Text');
}
if (purl.startsWith("magnet")){
let magfn = title;
try {
magfn = purl.match(/(^|&)dn=([^&]*)(&|$)/)[2];
}catch(e){
magfn = title;
}
let resolution = "unknown";
try {
resolution = magfn.match(/(1080|720|2160|4k|4K)/)[1];
}catch(e){
resolution = "unknown";
}
magfn = resolution + "." + magfn;
log("tabs magnet filename>>>>>>>>>>>" + magfn);
playObj["magnet"][purl]=magfn;
}else if (purl.startsWith("https://www.aliyundrive.com/s/")){
playObj["ali"][purl]=title;
}else if (purl.startsWith("https://pan.quark.cn/s/")){
playObj["quark"][purl]=title;
}
});
playGroups.push(playObj);
});
}
LISTS = [];
let haveDelay = false;
playGroups.forEach(function(it){
let haveMag = false;
if (Object.keys(it["magnet"]).length>0){
haveMag = true;
haveDelay = true;
let d = [];
for(const key in it["magnet"]){
if (it["magnet"].hasOwnProperty(key)){
let title = it["magnet"][key];
let burl = key;
log('meijumi magnet title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('meijumi magnet burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
d.push(title + '$' + burl);
}
}
d.sort();
let newd = [];
d.forEach(it=>{
newd.push(it.substring(it.indexOf(".")+1));
});
LISTS.push(newd);
}
if (Object.keys(it["ali"]).length==1){
let d = [];
for(const key in it["ali"]){
if (it["ali"].hasOwnProperty(key)){
let title = it["ali"][key];
let burl = "http://127.0.0.1:9978/proxy?do=ali&type=push&url=" + encodeURIComponent(key);
//let burl = "push://" + key;
log('meijumi ali title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('meijumi ali burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
d.push(title + '$' + burl);
if (false && !haveMag && !haveDelay){
haveDelay = true;
LISTS.push(["選擇右側綫路或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
}
}
}
LISTS.push(d);
}
if (Object.keys(it["quark"]).length==1){
let d = [];
for(const key in it["quark"]){
if (it["quark"].hasOwnProperty(key)){
let title = it["quark"][key];
let burl = "http://127.0.0.1:9978/proxy?do=quark&type=push&url=" + encodeURIComponent(key);
//let burl = "push://" + key;
log('meijumi quark title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('meijumi quark burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
d.push(title + '$' + burl);
if (false && !haveMag && !haveDelay){
haveDelay = true;
LISTS.push(["選擇右側綫路或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
}
}
}
LISTS.push(d);
}
});
`,
},
搜索:'ul.search-page article;h2&&Text;a img&&src;div.entry-content span:eq(1)&&Text;a&&href;div.entry-content div.archive-content&&Text',
}

178
js/mp4us.js Normal file
View File

@ -0,0 +1,178 @@
var rule = {
title:'MP4电影[磁]',
host:'https://www.mp4us.com',
homeUrl: '/',
url: '/list/fyclass-fypage.html?',
filter_url:'{{fl.class}}',
filter:{
},
searchUrl: '/search/**-1.html',
searchable:2,
quickSearch:0,
filterable:0,
headers:{
'User-Agent': 'PC_UA',
'Cookie':''
},
timeout:5000,
class_name: '动作片&科幻片&爱情片&喜剧片&恐怖片&战争片&剧情片&纪录片&动画片&电视剧',
class_url: '1&2&3&4&5&6&7&8&9&10',
play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'',
limit:6,
推荐:'div.index_update ul li;a&&Text;;b&&Text;a&&href',
一级:'div#list_all ul li;img.lazy&&alt;img.lazy&&data-original;span.update_time&&Text;a&&href',
二级:{
title:"div.article-header h1&&Text",
img:"div.article-header div.pic img&&src",
desc:'div.article-header div.text&&Text',
content:'div.article-related.info p&&Text',
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
let d = pdfa(html, 'ul.down-list&&li 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 (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('mp4us TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
lists:`js:
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
let d = pdfa(html, 'ul.down-list&&li 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 (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.reverse());
}
if (liste.length>0){
LISTS.push(liste.reverse());
}
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('mp4us seach cookie>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
//log("mp4us search params>>>>>>>>>>>>>>>" + JSON.stringify(_fetch_params));
let search_html = request( HOST + '/search/' + encodeURIComponent(KEY) + '-1.html', _fetch_params)
//log("mp4us search result>>>>>>>>>>>>>>>" + search_html);
let d=[];
//'div#list_all li;img.lazy&&alt;img.lazy&&src;div.text_info h2&&Text;a&&href;p.info&&Text',
let dlist = pdfa(search_html, 'div#list_all li');
dlist.forEach(function(it){
let title = pdfh(it, 'img.lazy&&alt');
if (title.includes(KEY)){
if (searchObj.quick === true){
title = KEY;
}
let img = pd(it, 'img.lazy&&src', HOST);
let content = pdfh(it, 'div.text_info h2&&Text');
let desc = pdfh(it, 'p.info&&Text');
let url = pd(it, 'a&&href', HOST);
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
}
});
setResult(d);
`,
}

130
js/rrdyw.js Normal file
View 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',
}