X/js/jiyingw.js

231 lines
7.9 KiB
JavaScript
Raw Normal View History

2023-08-15 09:49:24 +03:00
var rule = {
title:'极影网[磁]',
2023-08-28 07:55:54 +03:00
host:'https://www.jiyingw.net',
2023-08-23 07:06:48 +03:00
homeUrl:'/',
url: '/fyclass/page/fypage?',
//host:'http://127.0.0.1:10079',
2023-08-28 07:55:54 +03:00
//homeUrl:'/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net',
//url: '/p/0/socks5%253A%252F%252F192.168.101.1%253A1080/https://www.jiyingw.net/fyclass/page/fypage?',
2023-08-15 09:49:24 +03:00
filter_url:'{{fl.class}}',
filter:{
"movie":[{"key":"class","name":"标签","value":[{"n":"全部","v":"movie"},{"n":"4k","v":"tag/4k"}, {"n":"人性","v":"tag/人性"}, {"n":"传记","v":"tag/chuanji"}, {"n":"儿童","v":"tag/儿童"}, {"n":"冒险","v":"tag/adventure"}, {"n":"剧情","v":"tag/剧情"}, {"n":"加拿大","v":"tag/加拿大"}, {"n":"动作","v":"tag/dongzuo"}, {"n":"动漫","v":"tag/动漫"}, {"n":"励志","v":"tag/励志"}, {"n":"历史","v":"tag/history"}, {"n":"古装","v":"tag/古装"}, {"n":"同性","v":"tag/gay"}, {"n":"喜剧","v":"tag/comedy"}, {"n":"国剧","v":"tag/国剧"}, {"n":"奇幻","v":"tag/qihuan"}, {"n":"女性","v":"tag/女性"}, {"n":"家庭","v":"tag/family"}, {"n":"德国","v":"tag/德国"}, {"n":"恐怖","v":"tag/kongbu"}, {"n":"悬疑","v":"tag/xuanyi"}, {"n":"惊悚","v":"tag/jingsong"}, {"n":"意大利","v":"tag/意大利"}, {"n":"战争","v":"tag/zhanzheng"}, {"n":"战斗","v":"tag/战斗"}, {"n":"搞笑","v":"tag/搞笑"}, {"n":"故事","v":"tag/故事"}, {"n":"文艺","v":"tag/文艺"}, {"n":"日常","v":"tag/日常"}, {"n":"日本","v":"tag/日本"}, {"n":"日语","v":"tag/日语"}, {"n":"校园","v":"tag/校园"}, {"n":"武侠","v":"tag/wuxia"}, {"n":"法国","v":"tag/法国"}, {"n":"游戏","v":"tag/游戏"}, {"n":"灾难","v":"tag/zainan"}, {"n":"爱情","v":"tag/爱情"}, {"n":"犯罪","v":"tag/crime"}, {"n":"真人秀","v":"tag/zhenrenxiu"}, {"n":"短片","v":"tag/duanpian"}, {"n":"科幻","v":"tag/kehuan"}, {"n":"纪录","v":"tag/jilu"}, {"n":"美剧","v":"tag/meiju"}, {"n":"舞台","v":"tag/stage"}, {"n":"西部","v":"tag/xibu"}, {"n":"运动","v":"tag/yundong"}, {"n":"韩剧","v":"tag/韩剧"}, {"n":"韩国","v":"tag/韩国"}, {"n":"音乐","v":"tag/yinyue"}, {"n":"高清电影","v":"tag/高清电影"}]}]
},
searchUrl: '/?s=**',
searchable:2,
quickSearch:0,
filterable:1,
headers:{
'User-Agent': 'PC_UA',
2023-08-28 07:55:54 +03:00
'Cookie':'http://127.0.0.1:9978/file:///tvbox/JS/lib/jiyingw.txt',
'Accept':'*/*',
'Referer': 'https://www.jiyingw.net/'
2023-08-15 09:49:24 +03:00
},
timeout:5000,
class_name:'电影&电视剧&动漫&综艺&影评',
class_url:'movie&tv&cartoon&movie/variety&yingping',
play_parse:true,
play_json:[{
re:'*',
json:{
parse:0,
jx:0
}
}],
lazy:'',
limit:6,
推荐:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
一级:'ul#post_container li;a&&title;img&&src;.article entry_post&&Text;a&&href',
二级:{
title:"h1&&Text",
img:"#post_content img&&src",
desc:"#post_content&&Text",
2023-08-23 07:06:48 +03:00
content:"#post_content&&Text",
2023-08-15 09:49:24 +03:00
tabs:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
TABS=[]
2023-08-21 09:05:17 +03:00
let tabsa = [];
let tabsq = [];
let tabsm = false;
let tabse = false;
2023-08-23 07:06:48 +03:00
let d = pdfa(html, '#post_content p a');
2023-08-21 09:05:17 +03:00
d.forEach(function(it) {
let burl = pdfh(it, 'a&&href');
if (burl.startsWith("https://www.aliyundrive.com/s/")){
2023-09-11 10:33:14 +03:00
tabsa.push("阿里雲盤");
2023-08-21 09:05:17 +03:00
}else if (burl.startsWith("https://pan.quark.cn/s/")){
2023-09-11 10:33:14 +03:00
tabsq.push("夸克網盤");
2023-08-21 09:05:17 +03:00
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
}
});
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/")){
2023-09-11 10:33:14 +03:00
tabsa.push("阿里雲盤");
2023-08-21 09:05:17 +03:00
}else if (burl.startsWith("https://pan.quark.cn/s/")){
2023-09-11 10:33:14 +03:00
tabsq.push("夸克網盤");
2023-08-21 09:05:17 +03:00
}else if (burl.startsWith("magnet")){
tabsm = true;
}else if (burl.startsWith("ed2k")){
tabse = true;
2023-08-15 09:49:24 +03:00
}
2023-08-21 09:05:17 +03:00
});
2023-08-23 07:06:48 +03:00
if (tabsm === true){
TABS.push("磁力");
}
if (tabse === true){
TABS.push("電驢");
}
2023-08-30 08:49:27 +03:00
if (false && tabsa.length + tabsq.length > 1){
2023-08-28 07:55:54 +03:00
TABS.push("選擇右側綫路");
}
2023-08-21 09:05:17 +03:00
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;
});
2023-08-15 09:49:24 +03:00
log('jiyingw TABS >>>>>>>>>>>>>>>>>>' + TABS);
`,
lists:`js:
log(TABS);
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
LISTS = [];
2023-08-21 09:05:17 +03:00
let lista = [];
let listq = [];
2023-08-20 03:46:42 +03:00
let listm = [];
let liste = [];
2023-08-23 07:06:48 +03:00
let d = pdfa(html, '#post_content p a');
2023-08-20 03:46:42 +03:00
d.forEach(function(it){
2023-08-21 09:05:17 +03:00
let burl = pdfh(it, 'a&&href');
let title = pdfh(it, 'a&&Text');
log('dygang title >>>>>>>>>>>>>>>>>>>>>>>>>>' + title);
log('dygang burl >>>>>>>>>>>>>>>>>>>>>>>>>>' + burl);
2023-08-20 03:46:42 +03:00
let loopresult = title + '$' + burl;
2023-08-21 09:05:17 +03:00
if (burl.startsWith("https://www.aliyundrive.com/s/")){
2023-08-30 08:49:27 +03:00
if (true){
2023-08-23 07:06:48 +03:00
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);
}
2023-08-28 07:55:54 +03:00
}else{
burl = 'push://' + burl;
}
2023-08-21 09:05:17 +03:00
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
2023-08-30 08:49:27 +03:00
if (true){
2023-08-23 07:06:48 +03:00
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);
}
2023-08-28 07:55:54 +03:00
}else{
burl = 'push://' + burl;
}
2023-08-21 09:05:17 +03:00
loopresult = title + '$' + burl;
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
2023-08-20 03:46:42 +03:00
listm.push(loopresult);
2023-08-21 09:05:17 +03:00
}else if (burl.startsWith("ed2k")){
liste.push(loopresult);
}
});
d = pdfa(html, 'div#down p.down-list3 a');
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/")){
2023-08-30 08:49:27 +03:00
if (true){
2023-08-23 07:06:48 +03:00
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);
}
2023-08-28 07:55:54 +03:00
}else{
burl = 'push://' + burl;
}
2023-08-21 09:05:17 +03:00
loopresult = title + '$' + burl;
lista.push(loopresult);
}else if (burl.startsWith("https://pan.quark.cn/s/")){
2023-08-30 08:49:27 +03:00
if (true){
2023-08-23 07:06:48 +03:00
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);
}
2023-08-28 07:55:54 +03:00
}else{
burl = 'push://' + burl;
}
2023-08-20 03:46:42 +03:00
loopresult = title + '$' + burl;
2023-08-21 09:05:17 +03:00
listq.push(loopresult);
}else if (burl.startsWith("magnet")){
listm.push(loopresult);
}else if (burl.startsWith("ed2k")){
2023-08-20 03:46:42 +03:00
liste.push(loopresult);
2023-08-21 09:05:17 +03:00
}
});
2023-08-20 03:46:42 +03:00
if (listm.length>0){
LISTS.push(listm);
}
if (liste.length>0){
LISTS.push(liste);
}
2023-08-30 08:49:27 +03:00
if (false && lista.length + listq.length > 1){
2023-08-28 07:55:54 +03:00
LISTS.push(["選擇右側綫路或3秒後自動跳過$http://127.0.0.1:10079/delay/"]);
}
2023-08-23 07:06:48 +03:00
lista.forEach(function(it){
LISTS.push([it]);
});
listq.forEach(function(it){
LISTS.push([it]);
});
2023-08-15 09:49:24 +03:00
`,
},
搜索:`js:
pdfh=jsp.pdfh;pdfa=jsp.pdfa;pd=jsp.pd;
2023-08-28 07:55:54 +03:00
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('jiyingw search cookie>>>>>>>>>>>>>>>' + rule_fetch_params.headers.Cookie);
2023-08-15 09:49:24 +03:00
let _fetch_params = JSON.parse(JSON.stringify(rule_fetch_params));
2023-08-28 07:55:54 +03:00
let search_html=request(rule.homeUrl + '?s=' + encodeURIComponent(KEY), _fetch_params);
2023-08-15 09:49:24 +03:00
let d=[];
let dlist = pdfa(search_html, 'h2');
log("jiyingw dlist.length>>>>>>>"+dlist.length);
dlist.forEach(function(it){
let title = pdfh(it, 'a&&title');
//if (searchObj.quick === true){
// title = KEY;
//}
let img = '';
let content = title;
let desc = title;
let url = pd(it, 'a&&href', HOST);
d.push({
title:title,
img:img,
content:content,
desc:desc,
url:url
})
});
setResult(d);
`,
}