Add files via upload
This commit is contained in:
parent
0448431ac6
commit
6f60d5c8f0
12310
JS/crypto-js.js
12310
JS/crypto-js.js
File diff suppressed because it is too large
Load Diff
94
JS/drpy2.min.js
vendored
94
JS/drpy2.min.js
vendored
@ -194,7 +194,7 @@ function pre() {
|
|||||||
}
|
}
|
||||||
let rule = {};
|
let rule = {};
|
||||||
let vercode = typeof pdfl === "function" ? "drpy2.1" : "drpy2";
|
let vercode = typeof pdfl === "function" ? "drpy2.1" : "drpy2";
|
||||||
const VERSION = vercode + " 3.9.50beta24 20240601";
|
const VERSION = vercode + " 3.9.50beta27 20240608";
|
||||||
const MOBILE_UA = "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36";
|
const MOBILE_UA = "Mozilla/5.0 (Linux; Android 11; Pixel 5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.91 Mobile Safari/537.36";
|
||||||
const PC_UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";
|
const PC_UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/95.0.4638.54 Safari/537.36";
|
||||||
const UA = "Mozilla/5.0";
|
const UA = "Mozilla/5.0";
|
||||||
@ -202,7 +202,7 @@ const UC_UA = "Mozilla/5.0 (Linux; U; Android 9; zh-CN; MI 9 Build/PKQ1.181121.0
|
|||||||
const IOS_UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
|
const IOS_UA = "Mozilla/5.0 (iPhone; CPU iPhone OS 13_2_3 like Mac OS X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/13.0.3 Mobile/15E148 Safari/604.1";
|
||||||
const RULE_CK = "cookie";
|
const RULE_CK = "cookie";
|
||||||
const CATE_EXCLUDE = "首页|留言|APP|下载|资讯|新闻|动态";
|
const CATE_EXCLUDE = "首页|留言|APP|下载|资讯|新闻|动态";
|
||||||
const TAB_EXCLUDE = "猜你|喜欢|下载|剧情|热播";
|
const TAB_EXCLUDE = "猜你|喜欢|下载|剧情|榜|评论";
|
||||||
const OCR_RETRY = 3;
|
const OCR_RETRY = 3;
|
||||||
const OCR_API = "https://api.nn.ci/ocr/b64/text";
|
const OCR_API = "https://api.nn.ci/ocr/b64/text";
|
||||||
if (typeof MY_URL === "undefined") {
|
if (typeof MY_URL === "undefined") {
|
||||||
@ -1675,14 +1675,27 @@ function homeVodParse(homeVodObj) {
|
|||||||
let t2 = (new Date)
|
let t2 = (new Date)
|
||||||
.getTime();
|
.getTime();
|
||||||
console.log("加载首页推荐耗时:" + (t2 - t1) + "毫秒");
|
console.log("加载首页推荐耗时:" + (t2 - t1) + "毫秒");
|
||||||
if (rule.图片替换 && rule.图片替换.includes("=>")) {
|
if (rule.图片替换) {
|
||||||
let replace_from = rule.图片替换.split("=>")[0];
|
if (rule.图片替换.startsWith("js:")) {
|
||||||
let replace_to = rule.图片替换.split("=>")[1];
|
d.forEach(it => {
|
||||||
d.forEach(it => {
|
try {
|
||||||
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
var input = it.vod_pic;
|
||||||
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
eval(rule.图片替换.trim()
|
||||||
}
|
.replace("js:", ""));
|
||||||
})
|
it.vod_pic = input
|
||||||
|
} catch (e) {
|
||||||
|
log(`图片:${it.vod_pic}替换错误:${e.message}`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (rule.图片替换.includes("=>")) {
|
||||||
|
let replace_from = rule.图片替换.split("=>")[0];
|
||||||
|
let replace_to = rule.图片替换.split("=>")[1];
|
||||||
|
d.forEach(it => {
|
||||||
|
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
||||||
|
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (rule.图片来源) {
|
if (rule.图片来源) {
|
||||||
d.forEach(it => {
|
d.forEach(it => {
|
||||||
@ -1813,14 +1826,27 @@ function categoryParse(cateObj) {
|
|||||||
console.log(e.message)
|
console.log(e.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rule.图片替换 && rule.图片替换.includes("=>")) {
|
if (rule.图片替换) {
|
||||||
let replace_from = rule.图片替换.split("=>")[0];
|
if (rule.图片替换.startsWith("js:")) {
|
||||||
let replace_to = rule.图片替换.split("=>")[1];
|
d.forEach(it => {
|
||||||
d.forEach(it => {
|
try {
|
||||||
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
var input = it.vod_pic;
|
||||||
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
eval(rule.图片替换.trim()
|
||||||
}
|
.replace("js:", ""));
|
||||||
})
|
it.vod_pic = input
|
||||||
|
} catch (e) {
|
||||||
|
log(`图片:${it.vod_pic}替换错误:${e.message}`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (rule.图片替换.includes("=>")) {
|
||||||
|
let replace_from = rule.图片替换.split("=>")[0];
|
||||||
|
let replace_to = rule.图片替换.split("=>")[1];
|
||||||
|
d.forEach(it => {
|
||||||
|
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
||||||
|
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (rule.图片来源) {
|
if (rule.图片来源) {
|
||||||
d.forEach(it => {
|
d.forEach(it => {
|
||||||
@ -2007,14 +2033,27 @@ function searchParse(searchObj) {
|
|||||||
return "{}"
|
return "{}"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (rule.图片替换 && rule.图片替换.includes("=>")) {
|
if (rule.图片替换) {
|
||||||
let replace_from = rule.图片替换.split("=>")[0];
|
if (rule.图片替换.startsWith("js:")) {
|
||||||
let replace_to = rule.图片替换.split("=>")[1];
|
d.forEach(it => {
|
||||||
d.forEach(it => {
|
try {
|
||||||
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
var input = it.vod_pic;
|
||||||
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
eval(rule.图片替换.trim()
|
||||||
}
|
.replace("js:", ""));
|
||||||
})
|
it.vod_pic = input
|
||||||
|
} catch (e) {
|
||||||
|
log(`图片:${it.vod_pic}替换错误:${e.message}`)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
} else if (rule.图片替换.includes("=>")) {
|
||||||
|
let replace_from = rule.图片替换.split("=>")[0];
|
||||||
|
let replace_to = rule.图片替换.split("=>")[1];
|
||||||
|
d.forEach(it => {
|
||||||
|
if (it.vod_pic && it.vod_pic.startsWith("http")) {
|
||||||
|
it.vod_pic = it.vod_pic.replace(replace_from, replace_to)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
}
|
}
|
||||||
if (rule.图片来源) {
|
if (rule.图片来源) {
|
||||||
d.forEach(it => {
|
d.forEach(it => {
|
||||||
@ -2426,7 +2465,7 @@ function proxyParse(proxyObj) {
|
|||||||
log("准备执行本地代理规则:\n" + proxyObj.proxy_rule);
|
log("准备执行本地代理规则:\n" + proxyObj.proxy_rule);
|
||||||
try {
|
try {
|
||||||
eval(proxyObj.proxy_rule);
|
eval(proxyObj.proxy_rule);
|
||||||
if (input && input !== proxyObj.params && Array.isArray(input) && input.length === 3) {
|
if (input && input !== proxyObj.params && Array.isArray(input) && input.length >= 3) {
|
||||||
return input
|
return input
|
||||||
} else {
|
} else {
|
||||||
return [404, "text/plain", "Not Found"]
|
return [404, "text/plain", "Not Found"]
|
||||||
@ -2596,6 +2635,7 @@ function init(ext) {
|
|||||||
console.log(`执行${rule.hostJs}获取host发生错误:` + e.message)
|
console.log(`执行${rule.hostJs}获取host发生错误:` + e.message)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
rule.类型 = rule.类型 || "影视";
|
||||||
rule.url = rule.url || "";
|
rule.url = rule.url || "";
|
||||||
rule.double = rule.double || false;
|
rule.double = rule.double || false;
|
||||||
rule.homeUrl = rule.homeUrl || "";
|
rule.homeUrl = rule.homeUrl || "";
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
var rule = {
|
var rule = {
|
||||||
title: '腾云驾雾[官]',
|
title: '腾云驾雾[官]',
|
||||||
host: 'https://v.%71%71.com',
|
host: 'https://v.%71%71.com',
|
||||||
homeUrl: '/x/bu/pagesheet/list?_all=1&append=1&channel=choice&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
|
// homeUrl: '/x/bu/pagesheet/list?_all=1&append=1&channel=choice&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
|
||||||
|
homeUrl: '/x/bu/pagesheet/list?_all=1&append=1&channel=cartoon&listpage=1&offset=0&pagesize=21&iarea=-1&sort=18',
|
||||||
detailUrl: 'https://node.video.%71%71.com/x/api/float_vinfo2?cid=fyid',
|
detailUrl: 'https://node.video.%71%71.com/x/api/float_vinfo2?cid=fyid',
|
||||||
searchUrl: '/x/search/?q=**&stag=fypage',
|
searchUrl: '/x/search/?q=**&stag=fypage',
|
||||||
searchable: 2,
|
searchable: 2,
|
||||||
@ -9,7 +10,8 @@ var rule = {
|
|||||||
multi: 1,
|
multi: 1,
|
||||||
// url:'/channel/fyclass?listpage=fypage&channel=fyclass&sort=18&_all=1',
|
// url:'/channel/fyclass?listpage=fypage&channel=fyclass&sort=18&_all=1',
|
||||||
url: '/x/bu/pagesheet/list?_all=1&append=1&channel=fyclass&listpage=1&offset=((fypage-1)*21)&pagesize=21&iarea=-1',
|
url: '/x/bu/pagesheet/list?_all=1&append=1&channel=fyclass&listpage=1&offset=((fypage-1)*21)&pagesize=21&iarea=-1',
|
||||||
filter_url: 'sort={{fl.sort or 18}}&year={{fl.year}}&pay={{fl.pay}}',
|
// filter_url: 'sort={{fl.sort or 18}}&year={{fl.year}}&pay={{fl.pay}}',
|
||||||
|
filter_url: 'sort={{fl.sort or 75}}&year={{fl.year}}&pay={{fl.pay}}',
|
||||||
filter: 'H4sIAAAAAAAAA+2UzUrDQBCA32XOEZLUJrGvIj0saaDBNisxBkIJCG3Fi4oepIg3EQoieqiH+vM23Zq+hRuaZLZ4ce9z2/lmd2d2+NgR+H0e+gF0DkdwFGTQgRMeJ2BAxIaSwvrqVnxcyzhlg9PttqjED2c/45cSy8DyIDcavr57q/lBw8XTd/E6qbnT8M3zTFyc72RtC/Jumd+2c8wy7KZ4nxSL5Z9uxHS+Gc+r83sWVp1eVttl4Dluk1h93YubWZVwduplAYuxoFguVp+P/y5om/Z+/YxyqfAW8pbKbeS2yi3kO/ebyE2Fy1nXXBm7DDzknspd5K7KHeSOytvI2+XAugYkKWlD2mhrM+RpSB8OmaNvTsriMEgycofc0XbHZ3HCeUTukDv67vTDQY/MIXO0zelxn5M4JI6mOPkvgswSEpgPAAA=',
|
filter: 'H4sIAAAAAAAAA+2UzUrDQBCA32XOEZLUJrGvIj0saaDBNisxBkIJCG3Fi4oepIg3EQoieqiH+vM23Zq+hRuaZLZ4ce9z2/lmd2d2+NgR+H0e+gF0DkdwFGTQgRMeJ2BAxIaSwvrqVnxcyzhlg9PttqjED2c/45cSy8DyIDcavr57q/lBw8XTd/E6qbnT8M3zTFyc72RtC/Jumd+2c8wy7KZ4nxSL5Z9uxHS+Gc+r83sWVp1eVttl4Dluk1h93YubWZVwduplAYuxoFguVp+P/y5om/Z+/YxyqfAW8pbKbeS2yi3kO/ebyE2Fy1nXXBm7DDzknspd5K7KHeSOytvI2+XAugYkKWlD2mhrM+RpSB8OmaNvTsriMEgycofc0XbHZ3HCeUTukDv67vTDQY/MIXO0zelxn5M4JI6mOPkvgswSEpgPAAA=',
|
||||||
headers: {
|
headers: {
|
||||||
'User-Agent': 'PC_UA'
|
'User-Agent': 'PC_UA'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user