Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
言程序plus
dr_py
提交
4e5a0d6c
dr_py
项目概览
言程序plus
/
dr_py
与 Fork 源项目一致
从无法访问的项目Fork
通知
1
Star
0
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
dr_py
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
4e5a0d6c
编写于
10月 28, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
升级了
上级
7483901c
变更
6
显示空白变更内容
内联
并排
Showing
6 changed file
with
30 addition
and
28 deletion
+30
-28
base/custom.conf
base/custom.conf
+21
-21
base/rules.db
base/rules.db
+0
-0
controllers/home.py
controllers/home.py
+4
-4
js/version.txt
js/version.txt
+1
-1
readme.md
readme.md
+2
-0
utils/files.py
utils/files.py
+2
-2
未找到文件。
base/custom.conf
浏览文件 @
4e5a0d6c
...
...
@@ -24,27 +24,27 @@
{
"key"
:
"js_origin_puto"
,
"name"
:
"原始JS(pluto)"
,
"type"
:
3
,
"api"
:
"js_origin_test"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
,
"ext"
:
"{{host}}/txt/js/原始JS/origin.js"
},
{
"key"
:
"js_origin_tvb"
,
"name"
:
"原始JS(俊tvb)"
,
"type"
:
3
,
"api"
:
"{{host}}/txt/js/origin/原始JS.js"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
,
"ext"
:
"{}"
},
{
"key"
:
"drpy_zbk"
,
"name"
:
"真不卡(drpy)"
,
"type"
:
3
,
"api"
:
"js_drpy_zbk"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
,
"ext"
:
"{{host}}/txt/pluto/drpy.js"
},
{
"key"
:
"dr_MXONE"
,
"name"
:
"MXONE(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=MXONE&ext=txt/js/tg/MXONE.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_Nike影视"
,
"name"
:
"Nike影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=Nike影视&ext=txt/js/tg/Nike影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_TV云播"
,
"name"
:
"TV云播(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=TV云播&ext=txt/js/tg/TV云播.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_两个BT"
,
"name"
:
"两个BT(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=两个BT&ext=txt/js/tg/两个BT.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_剧荒"
,
"name"
:
"剧荒(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=剧荒&ext=txt/js/tg/剧荒.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_剧迷"
,
"name"
:
"剧迷(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=剧迷&ext=txt/js/tg/剧迷.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_天空影视"
,
"name"
:
"天空影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=天空影视&ext=txt/js/tg/天空影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_快云影院"
,
"name"
:
"快云影院(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=快云影院&ext=txt/js/tg/快云影院.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_爱看影视"
,
"name"
:
"爱看影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=爱看影视&ext=txt/js/tg/爱看影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_爱看电影"
,
"name"
:
"爱看电影(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=爱看电影&ext=txt/js/tg/爱看电影.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_特狗影视"
,
"name"
:
"特狗影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=特狗影视&ext=txt/js/tg/特狗影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_皮皮泡"
,
"name"
:
"皮皮泡(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=皮皮泡&ext=txt/js/tg/皮皮泡.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_看了么"
,
"name"
:
"看了么(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=看了么&ext=txt/js/tg/看了么.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_胖虎影视"
,
"name"
:
"胖虎影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=胖虎影视&ext=txt/js/tg/胖虎影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_18av"
,
"name"
:
"18av(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=18av&ext=txt/js/18/18av.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_banan"
,
"name"
:
"banan(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=banan&ext=txt/js/18/banan.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_Missav"
,
"name"
:
"Missav(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=Missav&ext=txt/js/18/Missav.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_养端"
,
"name"
:
"养端(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=养端&ext=txt/js/18/养端.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_吸瓜"
,
"name"
:
"吸瓜(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=吸瓜&ext=txt/js/18/吸瓜.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_朱古力"
,
"name"
:
"朱古力(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=朱古力&ext=txt/js/18/朱古力.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?rule=玩偶姐姐&ext=txt/js/18/玩偶姐姐.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_MXONE"
,
"name"
:
"MXONE(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=MXONE&ext=txt/js/tg/MXONE.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_Nike影视"
,
"name"
:
"Nike影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=Nike影视&ext=txt/js/tg/Nike影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_TV云播"
,
"name"
:
"TV云播(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=TV云播&ext=txt/js/tg/TV云播.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_两个BT"
,
"name"
:
"两个BT(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=两个BT&ext=txt/js/tg/两个BT.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_剧荒"
,
"name"
:
"剧荒(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=剧荒&ext=txt/js/tg/剧荒.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_剧迷"
,
"name"
:
"剧迷(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=剧迷&ext=txt/js/tg/剧迷.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_天空影视"
,
"name"
:
"天空影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=天空影视&ext=txt/js/tg/天空影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_快云影院"
,
"name"
:
"快云影院(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=快云影院&ext=txt/js/tg/快云影院.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_爱看影视"
,
"name"
:
"爱看影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=爱看影视&ext=txt/js/tg/爱看影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_爱看电影"
,
"name"
:
"爱看电影(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=爱看电影&ext=txt/js/tg/爱看电影.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_特狗影视"
,
"name"
:
"特狗影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=特狗影视&ext=txt/js/tg/特狗影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_皮皮泡"
,
"name"
:
"皮皮泡(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=皮皮泡&ext=txt/js/tg/皮皮泡.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_看了么"
,
"name"
:
"看了么(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=看了么&ext=txt/js/tg/看了么.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_胖虎影视"
,
"name"
:
"胖虎影视(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=胖虎影视&ext=txt/js/tg/胖虎影视.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_18av"
,
"name"
:
"18av(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=18av&ext=txt/js/18/18av.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_banan"
,
"name"
:
"banan(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=banan&ext=txt/js/18/banan.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_Missav"
,
"name"
:
"Missav(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=Missav&ext=txt/js/18/Missav.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_养端"
,
"name"
:
"养端(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=养端&ext=txt/js/18/养端.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_吸瓜"
,
"name"
:
"吸瓜(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=吸瓜&ext=txt/js/18/吸瓜.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_朱古力"
,
"name"
:
"朱古力(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=朱古力&ext=txt/js/18/朱古力.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
"type"
:
1
,
"api"
:
"{{host}}/vod?
{% if js0_password %}pwd={{js0_password}}&{% endif %}
rule=玩偶姐姐&ext=txt/js/18/玩偶姐姐.js"
,
"searchable"
:
2
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"csp_SP360"
,
"name"
:
"🎾360(SP)"
,
"type"
:
3
,
"api"
:
"csp_SP360"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
},
{
"key"
:
"csp_Kuaikan"
,
"name"
:
"👀快看(SP)"
,
"type"
:
3
,
"api"
:
"csp_Kuaikan"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
},
...
...
base/rules.db
浏览文件 @
4e5a0d6c
无法预览此类型文件
controllers/home.py
浏览文件 @
4e5a0d6c
...
...
@@ -232,7 +232,7 @@ def config_render(mode):
js_mode
=
int
(
new_conf
.
JS_MODE
or
0
)
print
(
f
'
{
type
(
js_mode
)
}
jsmode:
{
js_mode
}
'
)
# print(ali_token)
customConfig
=
getCustonDict
(
host
,
ali_token
)
customConfig
=
getCustonDict
(
host
,
ali_token
,
js0_password
)
# print(customConfig)
jxs
=
getJxs
(
host
=
host
)
use_py
=
lsg
.
getItem
(
'USE_PY'
)
...
...
@@ -333,14 +333,14 @@ def config_gen():
set_online
=
render_template
(
'config.txt'
,
js0_password
=
js0_password
,
pys
=
pys
,
rules
=
rules
,
alists
=
alists
,
alists_str
=
alists_str
,
live_url
=
get_live_url
(
new_conf
,
2
),
mode
=
1
,
js_mode
=
js_mode
,
host
=
host2
,
jxs
=
jxs
)
ali_token
=
new_conf
.
ALI_TOKEN
with
open
(
'txt/pycms0.json'
,
'w+'
,
encoding
=
'utf-8'
)
as
f
:
customConfig
=
getCustonDict
(
host0
,
ali_token
)
customConfig
=
getCustonDict
(
host0
,
ali_token
,
js0_password
)
set_dict
=
custom_merge
(
parseText
(
set_local
),
customConfig
)
merged_hide
(
set_dict
)
set_dict
[
'sites'
]
=
sort_sites_by_order
(
set_dict
[
'sites'
],
js_mode
)
# set_dict = json.loads(set_local)
f
.
write
(
json
.
dumps
(
set_dict
,
ensure_ascii
=
False
,
indent
=
4
))
with
open
(
'txt/pycms1.json'
,
'w+'
,
encoding
=
'utf-8'
)
as
f
:
customConfig
=
getCustonDict
(
host1
,
ali_token
)
customConfig
=
getCustonDict
(
host1
,
ali_token
,
js0_password
)
set_dict
=
custom_merge
(
parseText
(
set_area
),
customConfig
)
merged_hide
(
set_dict
)
set_dict
[
'sites'
]
=
sort_sites_by_order
(
set_dict
[
'sites'
],
js_mode
)
...
...
@@ -348,7 +348,7 @@ def config_gen():
f
.
write
(
json
.
dumps
(
set_dict
,
ensure_ascii
=
False
,
indent
=
4
))
with
open
(
'txt/pycms2.json'
,
'w+'
,
encoding
=
'utf-8'
)
as
f
:
customConfig
=
getCustonDict
(
host2
,
ali_token
)
customConfig
=
getCustonDict
(
host2
,
ali_token
,
js0_password
)
set_dict
=
custom_merge
(
parseText
(
set_online
),
customConfig
)
merged_hide
(
set_dict
)
set_dict
[
'sites'
]
=
sort_sites_by_order
(
set_dict
[
'sites'
],
js_mode
)
...
...
js/version.txt
浏览文件 @
4e5a0d6c
3.9.18
\ No newline at end of file
3.9.18beta1
\ No newline at end of file
readme.md
浏览文件 @
4e5a0d6c
...
...
@@ -47,6 +47,8 @@
[
dockerfile教程
](
https://blog.csdn.net/qq_46158060/article/details/125718218
)
[
获取本地设备信息
](
https://blog.csdn.net/cui_yonghua/article/details/125508991
)
[
获取本地设备信息
](
https://m.jb51.net/article/140716.htm
)
###### 2022/10/28
-
[X] 3.9.18beta1 未来功能排序优化,设置中心增加js0防盗用和禁用功能
###### 2022/10/27
-
[X] v3.9.18 js1 增加 预处理:, 可以在预处理里写js代码实现操作rule变量和 rule_fetch_params 变量
比如 rule_fetch_params.headers.Cookie = 'xxxx'; 当然这个cookie是通过js代码获取到的
...
...
utils/files.py
浏览文件 @
4e5a0d6c
...
...
@@ -96,7 +96,7 @@ def custom_merge(original:dict,custom:dict):
logger
.
info
(
f
'合并配置共有解析数量:
{
len
(
original
.
get
(
"parses"
))
}
'
)
return
original
def
getCustonDict
(
host
,
ali_token
=
''
):
def
getCustonDict
(
host
,
ali_token
=
''
,
js0_password
=
''
):
customFile
=
'base/custom.conf'
if
not
os
.
path
.
exists
(
customFile
):
with
open
(
customFile
,
'w+'
,
encoding
=
'utf-8'
)
as
f
:
...
...
@@ -105,7 +105,7 @@ def getCustonDict(host,ali_token=''):
try
:
with
open
(
customFile
,
'r'
,
encoding
=
'utf-8'
)
as
f
:
text
=
f
.
read
()
customConfig
=
parseText
(
render_template_string
(
text
,
host
=
host
,
ali_token
=
ali_token
))
customConfig
=
parseText
(
render_template_string
(
text
,
host
=
host
,
ali_token
=
ali_token
,
js0_password
=
js0_password
))
except
Exception
as
e
:
logger
.
info
(
f
'用户自定义配置加载失败:
{
e
}
'
)
return
customConfig
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录