Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
muziyicn
dr_py
提交
62d0401b
dr_py
项目概览
muziyicn
/
dr_py
与 Fork 源项目一致
Fork自
晚风拂柳颜 / dr_py
通知
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,发现更多精彩内容 >>
提交
62d0401b
编写于
8月 31, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化了自动配置装载耗时
上级
8ef49c8b
变更
4
显示空白变更内容
内联
并排
Showing
4 changed file
with
184 addition
and
35 deletion
+184
-35
app.py
app.py
+16
-2
txt/pycms0.json
txt/pycms0.json
+56
-11
txt/pycms1.json
txt/pycms1.json
+56
-11
txt/pycms2.json
txt/pycms2.json
+56
-11
未找到文件。
app.py
浏览文件 @
62d0401b
...
...
@@ -234,9 +234,23 @@ def getRules(path='cache'):
with
open
(
'js/模板.js'
,
encoding
=
'utf-8'
)
as
f
:
before
=
f
.
read
()
rule_codes
=
[]
for
js
in
js_path
:
# for js in js_path:
# with open(js,encoding='utf-8') as f:
# code = f.read()
# rule_codes.append(js2py.eval_js(before+code))
ctx
=
js2py
.
EvalJs
()
codes
=
[]
for
i
in
range
(
len
(
js_path
)):
js
=
js_path
[
i
]
with
open
(
js
,
encoding
=
'utf-8'
)
as
f
:
rule_codes
.
append
(
js2py
.
eval_js
(
before
+
f
.
read
()))
code
=
f
.
read
()
codes
.
append
(
code
.
replace
(
'rule'
,
f
'rule
{
i
}
'
,
1
))
newCodes
=
before
+
'
\n
'
+
'
\n
'
.
join
(
codes
)
# print(newCodes)
ctx
.
execute
(
newCodes
)
for
i
in
range
(
len
(
js_path
)):
rule_codes
.
append
(
ctx
.
eval
(
f
'rule
{
i
}
'
))
# print(rule_codes)
# print(type(rule_codes[0]),rule_codes[0])
...
...
txt/pycms0.json
浏览文件 @
62d0401b
{
"wallpaper"
:
"http://localhost:5705/pics"
,
"dr_count"
:
1
1
,
"dr_count"
:
1
6
,
"mode"
:
0
,
"sites"
:
[
{
...
...
@@ -17,8 +17,26 @@
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=cokemv"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_LIBVIO"
,
"name"
:
"LIBVIO(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=LIBVIO"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_万能影视"
,
"name"
:
"万能影视(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=万能影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -30,13 +48,22 @@
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_在线之家"
,
"name"
:
"在线之家(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=在线之家"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=夜空"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -48,6 +75,15 @@
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_影视工厂"
,
"name"
:
"影视工厂(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=影视工厂"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
...
...
@@ -71,8 +107,8 @@
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -80,8 +116,17 @@
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=莫扎兔"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝光影院"
,
"name"
:
"蓝光影院(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=蓝光影院"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -98,8 +143,8 @@
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=鸭奈飞"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
}
],
...
...
txt/pycms1.json
浏览文件 @
62d0401b
{
"wallpaper"
:
"http://192.168.10.99:5705/pics"
,
"dr_count"
:
1
1
,
"dr_count"
:
1
6
,
"mode"
:
1
,
"sites"
:
[
{
...
...
@@ -17,8 +17,26 @@
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=cokemv"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_LIBVIO"
,
"name"
:
"LIBVIO(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=LIBVIO"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_万能影视"
,
"name"
:
"万能影视(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=万能影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -30,13 +48,22 @@
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_在线之家"
,
"name"
:
"在线之家(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=在线之家"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=夜空"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -48,6 +75,15 @@
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_影视工厂"
,
"name"
:
"影视工厂(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=影视工厂"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
...
...
@@ -71,8 +107,8 @@
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -80,8 +116,17 @@
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=莫扎兔"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝光影院"
,
"name"
:
"蓝光影院(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=蓝光影院"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -98,8 +143,8 @@
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=鸭奈飞"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
}
],
...
...
txt/pycms2.json
浏览文件 @
62d0401b
{
"wallpaper"
:
"http://cms.nokia.press/pics"
,
"dr_count"
:
1
1
,
"dr_count"
:
1
6
,
"mode"
:
1
,
"sites"
:
[
{
...
...
@@ -17,8 +17,26 @@
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=cokemv"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_LIBVIO"
,
"name"
:
"LIBVIO(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=LIBVIO"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_万能影视"
,
"name"
:
"万能影视(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=万能影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -30,13 +48,22 @@
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_在线之家"
,
"name"
:
"在线之家(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=在线之家"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=夜空"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -48,6 +75,15 @@
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_影视工厂"
,
"name"
:
"影视工厂(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=影视工厂"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
...
...
@@ -71,8 +107,8 @@
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -80,8 +116,17 @@
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=莫扎兔"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝光影院"
,
"name"
:
"蓝光影院(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=蓝光影院"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
},
{
...
...
@@ -98,8 +143,8 @@
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=鸭奈飞"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
0
}
],
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录