批量替换了链接
This commit is contained in:
parent
bb17ff334a
commit
39f91923a2
@ -52,6 +52,6 @@ SEARCH_TIMEOUT = 5000 # 聚搜超时毫秒
|
||||
SEARCH_LIMIT = 24 # 聚搜限制条数
|
||||
MULTI_MODE = 0 # 多源模式
|
||||
XR_MODE = 1 # 仙人模式
|
||||
JS_PROXY = 'http://localhost:5705/admin/view/=>https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/' # 源代理
|
||||
JS_PROXY = 'http://localhost:5705/admin/view/=>https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/' # 源代理
|
||||
ALI_TOKEN = '' # 适用于初始配置的阿里云token
|
||||
ENV = '{"bili_cookie":""}' # 自定义环境变量
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
|
||||
// 道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
|
||||
// 道长 drpy写源 模板规则说明 https://gitcode.net/supertlo/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
|
||||
// 道长 drpy写源 套模模版 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 套模模版 https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 影片教程 http://101.34.67.237:5244/%E6%95%99%E8%82%B2/drpy
|
||||
// 道长 drpy写源 影片教程(m3u8切片) https://freedrpy.run.goorm.io/txt/jc/playlist.m3u8
|
||||
// 海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
|
||||
|
||||
@ -6,11 +6,11 @@
|
||||
"key":"dr_HG影院[V2]",
|
||||
"name":"HG影院[V2](drpy)",
|
||||
"type":3,
|
||||
"api":"https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/drpy2.min.js",
|
||||
"api":"https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/drpy2.min.js",
|
||||
"searchable":2,
|
||||
"quickSearch":0,
|
||||
"filterable":1,
|
||||
"ext":"https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/HG影院[V2].js",
|
||||
"ext":"https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/HG影院[V2].js",
|
||||
"playerType":2
|
||||
},
|
||||
*/
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
|
||||
// 道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
|
||||
// 道长 drpy写源 模板规则说明 https://gitcode.net/qq_32394351/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
|
||||
// 道长 drpy写源 套模模版 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 套模模版 https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 相关视频教程 https://www.youtube.com/watch?v=AK7cN-fcwm4
|
||||
// 道长 drpy写源 写源教学视频 https://t.me/fongmi_offical/54080/63553
|
||||
// 海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
|
||||
// 道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
|
||||
// 道长 drpy写源 模板规则说明 https://gitcode.net/qq_32394351/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
|
||||
// 道长 drpy写源 套模模版 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 套模模版 https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 相关视频教程 https://www.youtube.com/watch?v=AK7cN-fcwm4
|
||||
// 道长 drpy写源 写源教学视频 https://t.me/fongmi_offical/54080/63553
|
||||
// 海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
/*
|
||||
播放器要改为EXO --> "playerType":2
|
||||
可参考底下配置:
|
||||
{"key":"dr_欧乐影院[飞]","name":"欧乐影院[飞](drpy)","type":3,"api":"https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/drpy2.min.js","searchable":2,"quickSearch":0,"filterable":1,"ext":"https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/欧乐影院[飞].js","playerType":2},
|
||||
{"key":"dr_欧乐影院[飞]","name":"欧乐影院[飞](drpy)","type":3,"api":"https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/drpy2.min.js","searchable":2,"quickSearch":0,"filterable":1,"ext":"https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/欧乐影院[飞].js","playerType":2},
|
||||
*/
|
||||
|
||||
var rule = {
|
||||
|
||||
@ -4,7 +4,7 @@
|
||||
道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
|
||||
道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
|
||||
道长 drpy写源 模板规则说明 https://gitcode.net/supertlo/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
|
||||
道长 drpy写源 套模模版 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/%E6%A8%A1%E6%9D%BF.js
|
||||
道长 drpy写源 套模模版 https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/%E6%A8%A1%E6%9D%BF.js
|
||||
道长 drpy写源 影片教程 http://101.34.67.237:5244/%E6%95%99%E8%82%B2/drpy
|
||||
道长 drpy写源 影片教程(m3u8切片) https://freedrpy.run.goorm.io/txt/jc/playlist.m3u8
|
||||
海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
|
||||
@ -45,5 +45,5 @@ var rule = {
|
||||
一级:'.list-works li;a&&title;img&&src;.list-book-cs span:eq(0)&&Text;a&&href',
|
||||
二级:{title:'h1&&Text;.book-info dd:eq(1)&&Text',img:'.book-img img&&src',desc:';;.book-info dd:gt(3):lt(6)&&Text;.book-info dd:eq(3)&&Text;.book-info dd:eq(2)&&Text',content:'.div-b&&Text',tabs:'.playlist-top&&h2',lists:'#playlist:eq(#id) li'},
|
||||
搜索:'*',
|
||||
// 预处理:'log("我是预处理");let html=request("https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/version.txt");log(html);rule_fetch_params.headers.Cookie="searchneed=ok";',
|
||||
// 预处理:'log("我是预处理");let html=request("https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/version.txt");log(html);rule_fetch_params.headers.Cookie="searchneed=ok";',
|
||||
}
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
// 道长 drpy仓库 https://gitcode.net/qq_32394351/dr_py
|
||||
// 道长 drpy安卓本地搭建说明 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/blob/master/%E5%AE%89%E5%8D%93%E6%9C%AC%E5%9C%B0%E6%90%AD%E5%BB%BA%E8%AF%B4%E6%98%8E.md
|
||||
// 道长 drpy写源 模板规则说明 https://gitcode.net/qq_32394351/dr_py#%E6%A8%A1%E6%9D%BF%E8%A7%84%E5%88%99%E8%AF%B4%E6%98%8E
|
||||
// 道长 drpy写源 套模模版 https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 套模模版 https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/%E6%A8%A1%E6%9D%BF.js
|
||||
// 道长 drpy写源 相关视频教程 https://www.youtube.com/watch?v=AK7cN-fcwm4
|
||||
// 道长 drpy写源 写源教学视频 https://t.me/fongmi_offical/54080/63553
|
||||
// 海阔下载 https://haikuo.lanzoui.com/u/GoldRiver
|
||||
|
||||
@ -1,7 +1,7 @@
|
||||
import './util-ym.js';
|
||||
import cheerio from 'assets://js/lib/cheerio.min.js';
|
||||
import 'assets://js/lib/crypto-js.js'
|
||||
// import muban from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js';
|
||||
// import muban from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js';
|
||||
|
||||
// const key = 'drpy_zbk';
|
||||
// eval(req('http://192.168.1.124:5705/libs/es6py.js').content);
|
||||
@ -1221,7 +1221,7 @@ function init(ext) {
|
||||
try {
|
||||
// make shared jsContext happy
|
||||
if (typeof (globalThis.mubanJs) === 'undefined') {
|
||||
let mubanJs = request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
let mubanJs = request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
mubanJs = mubanJs.replace('export default', '(function() {return muban;}()) // export default');
|
||||
globalThis.mubanJs = mubanJs;
|
||||
}
|
||||
|
||||
18
libs/drpy.js
18
libs/drpy.js
@ -1,14 +1,14 @@
|
||||
// import 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/es6py.js';
|
||||
// import 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/es6py.js';
|
||||
// import {是否正版,urlDeal,setResult,setResult2,setHomeResult,maoss,urlencode} from 'http://192.168.10.103:5705/libs/es6py.js';
|
||||
// import 'http://192.168.1.124:5705/libs/es6py.js';
|
||||
import cheerio from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/cheerio.min.js';
|
||||
import cheerio from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js';
|
||||
// import cheerio from 'http://192.168.10.103:5705/libs/cheerio.min.js';
|
||||
import 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-js.js';
|
||||
import 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/drT.js';
|
||||
import 模板 from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js';
|
||||
import {gbkTool} from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/gbk.js'
|
||||
import 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js';
|
||||
import 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/drT.js';
|
||||
import 模板 from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js';
|
||||
import {gbkTool} from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js'
|
||||
// import 'http://192.168.10.103:5705/libs/drT.js';
|
||||
// import muban from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js';
|
||||
// import muban from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js';
|
||||
// import muban from 'http://192.168.10.103:5705/admin/view/模板.js';
|
||||
|
||||
// const key = 'drpy_zbk';
|
||||
@ -427,7 +427,7 @@ function decodeStr(input,encoding){
|
||||
}
|
||||
|
||||
function getCryptoJS(){
|
||||
// return request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-hiker.js');
|
||||
// return request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-hiker.js');
|
||||
return 'console.log("CryptoJS已装载");'
|
||||
}
|
||||
|
||||
@ -2113,7 +2113,7 @@ function playParse(playObj){
|
||||
try {
|
||||
// make shared jsContext happy muban不能import,不然会造成换源继承后变量被篡改
|
||||
// if (typeof (globalThis.mubanJs) === 'undefined') {
|
||||
// let mubanJs = request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
// let mubanJs = request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
// mubanJs = mubanJs.replace('export default', '(function() {return muban;}()) // export default');
|
||||
// // console.log(mubanJs);
|
||||
// globalThis.mubanJs = mubanJs;
|
||||
|
||||
2
libs/drpy.min.js
vendored
2
libs/drpy.min.js
vendored
File diff suppressed because one or more lines are too long
@ -1,5 +1,5 @@
|
||||
import cheerio from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/cheerio.min.js';
|
||||
import 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-js.js';
|
||||
import cheerio from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js';
|
||||
import 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js';
|
||||
|
||||
function init_test(){
|
||||
// console.log(typeof(CryptoJS));
|
||||
@ -374,7 +374,7 @@ function md5(text) {
|
||||
}
|
||||
|
||||
function getCryptoJS(){
|
||||
// return request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-hiker.js');
|
||||
// return request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-hiker.js');
|
||||
return 'console.log("CryptoJS已装载");'
|
||||
}
|
||||
|
||||
@ -1867,7 +1867,7 @@ function init(ext) {
|
||||
try {
|
||||
// make shared jsContext happy muban不能import,不然会造成换源继承后变量被篡改
|
||||
if (typeof (globalThis.mubanJs) === 'undefined') {
|
||||
let mubanJs = request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
let mubanJs = request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
mubanJs = mubanJs.replace('export default', '(function() {return muban;}()) // export default');
|
||||
// console.log(mubanJs);
|
||||
globalThis.mubanJs = mubanJs;
|
||||
|
||||
@ -3,10 +3,10 @@ import 'assets://js/lib/crypto-js.js';
|
||||
import 模板 from"../js/模板.js"
|
||||
import {gbkTool} from './gbk.js'
|
||||
|
||||
// import cheerio from "https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/cheerio.min.js";
|
||||
// import "https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-js.js";
|
||||
// import 模板 from"https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js";
|
||||
// import {gbkTool} from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/gbk.js'
|
||||
// import cheerio from "https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/cheerio.min.js";
|
||||
// import "https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-js.js";
|
||||
// import 模板 from"https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js";
|
||||
// import {gbkTool} from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/gbk.js'
|
||||
|
||||
function init_test(){
|
||||
// console.log(typeof(CryptoJS));
|
||||
@ -416,7 +416,7 @@ function decodeStr(input,encoding){
|
||||
}
|
||||
|
||||
function getCryptoJS(){
|
||||
// return request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/libs/crypto-hiker.js');
|
||||
// return request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/libs/crypto-hiker.js');
|
||||
return 'console.log("CryptoJS已装载");'
|
||||
}
|
||||
|
||||
@ -1977,7 +1977,7 @@ function init(ext) {
|
||||
try {
|
||||
// make shared jsContext happy muban不能import,不然会造成换源继承后变量被篡改
|
||||
// if (typeof (globalThis.mubanJs) === 'undefined') {
|
||||
// let mubanJs = request('https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
// let mubanJs = request('https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js', { 'User-Agent': MOBILE_UA });
|
||||
// mubanJs = mubanJs.replace('export default', '(function() {return muban;}()) // export default');
|
||||
// // console.log(mubanJs);
|
||||
// globalThis.mubanJs = mubanJs;
|
||||
|
||||
6
start.sh
6
start.sh
@ -2,9 +2,11 @@
|
||||
# 建立文件夹
|
||||
mkdir -p /home/pywork/dr_py && cd /home/pywork/dr_py
|
||||
# 下载仓库包
|
||||
wget https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/archive/master.zip
|
||||
wget https://ghproxy.com/https://github.com/hjdhnx/dr_py/archive/refs/heads/main.zip -O dr_py.zip
|
||||
# 解压
|
||||
unzip master.zip
|
||||
unzip dr_py.zip
|
||||
# 移动文件到当前目录
|
||||
mv dr*/* ./
|
||||
# 清理临时文件
|
||||
rm *.zip
|
||||
# 启动容器
|
||||
|
||||
@ -1,11 +1,11 @@
|
||||
import ch from './cheerio.min.js';
|
||||
// import Uri from './uri.min.js';
|
||||
// var URI = require('urijs');
|
||||
// import 模板 from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js'
|
||||
// import 模板 from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js'
|
||||
// var rule = Object.assign(模板.首图2,{
|
||||
// host: 'https://www.zbkk.net',
|
||||
// });
|
||||
import template from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/txt/pluto/template-web.js'
|
||||
import template from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/txt/pluto/template-web.js'
|
||||
|
||||
var ahtml = template.render('hi, <%=value%>.', {value: 'aui'});
|
||||
console.log(ahtml);
|
||||
|
||||
@ -2,7 +2,7 @@ import ch from './cheerio.min.js';
|
||||
// import 'http://192.168.10.99:5705/txt/pluto/drT.js';
|
||||
// import 'http://192.168.3.239:5705/txt/pluto/drT.js';
|
||||
import 'http://gitcode.net/qq_32394351/dr_py/-/raw/master/txt/pluto/drT.js';
|
||||
// import 模板 from 'https://code.gitlink.org.cn/api/v1/repos/hjdhnx/dr_py/raw/master/js/模板.js'
|
||||
// import 模板 from 'https://ghproxy.com/https://raw.githubusercontent.com/hjdhnx/dr_py/main/js/模板.js'
|
||||
// var rule = Object.assign(模板.首图2,{
|
||||
// host: 'https://www.zbkk.net',
|
||||
// });
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user