Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
季末490
dr_py
提交
0d16f9b2
dr_py
项目概览
季末490
/
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,发现更多精彩内容 >>
提交
0d16f9b2
编写于
8月 30, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
本地直播地址进行base64编码,兼容原版tv_box使用
上级
52452573
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
171 addition
and
75 deletion
+171
-75
app.py
app.py
+5
-5
templates/config.txt
templates/config.txt
+1
-1
txt/pycms0.json
txt/pycms0.json
+52
-20
txt/pycms1.json
txt/pycms1.json
+61
-29
txt/pycms2.json
txt/pycms2.json
+52
-20
未找到文件。
app.py
浏览文件 @
0d16f9b2
...
...
@@ -4,7 +4,7 @@
# Author: DaShenHan&道长-----先苦后甜,任凭晚风拂柳颜------
# Date : 2022/8/25
import
random
from
utils.encode
import
base64Encode
import
js2py
from
flask_sqlalchemy
import
SQLAlchemy
import
config
...
...
@@ -289,7 +289,7 @@ def config_render(mode):
if
mode
==
1
:
jyw_ip
=
getHost
(
mode
)
logger
.
info
(
jyw_ip
)
html
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
host
=
getHost
(
mode
),
mode
=
mode
,
jxs
=
getJxs
(),
config
=
dict
(
app
.
config
))
html
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
host
=
getHost
(
mode
),
mode
=
mode
,
jxs
=
getJxs
(),
base64Encode
=
base64Encode
,
config
=
dict
(
app
.
config
))
response
=
make_response
(
html
)
response
.
headers
[
'Content-Type'
]
=
'application/json; charset=utf-8'
return
response
...
...
@@ -312,9 +312,9 @@ def config_gen():
# 生成文件
os
.
makedirs
(
'txt'
,
exist_ok
=
True
)
jxs
=
getJxs
()
set_local
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
mode
=
0
,
host
=
getHost
(
0
),
jxs
=
jxs
)
set_area
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
mode
=
1
,
host
=
getHost
(
1
),
jxs
=
jxs
)
set_online
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
mode
=
1
,
host
=
getHost
(
2
),
jxs
=
jxs
)
set_local
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
base64Encode
=
base64Encode
,
mode
=
0
,
host
=
getHost
(
0
),
jxs
=
jxs
)
set_area
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
base64Encode
=
base64Encode
,
mode
=
1
,
host
=
getHost
(
1
),
jxs
=
jxs
)
set_online
=
render_template
(
'config.txt'
,
rules
=
getRules
(
'js'
),
base64Encode
=
base64Encode
,
mode
=
1
,
host
=
getHost
(
2
),
jxs
=
jxs
)
with
open
(
'txt/pycms0.json'
,
'w+'
,
encoding
=
'utf-8'
)
as
f
:
set_dict
=
json
.
loads
(
set_local
)
f
.
write
(
json
.
dumps
(
set_dict
,
ensure_ascii
=
False
,
indent
=
4
))
...
...
templates/config.txt
浏览文件 @
0d16f9b2
...
...
@@ -48,7 +48,7 @@
}{% if loop.last==False %},{% endif %}{% endfor %}
],
"flags": ["youku", "qq", "iqiyi", "qiyi", "letv", "sohu", "tudou","xigua","cntv","1905", "pptv", "mgtv", "wasu", "bilibili", "renrenmi"],
"lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{
host }}/lives
"]}]}],
"lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{
base64Encode(host+'/lives') }}
"]}]}],
"ijk": [{
"group": "软解码",
"options": [{
...
...
txt/pycms0.json
浏览文件 @
0d16f9b2
{
"dr_count"
:
9
,
"wallpaper"
:
"http://localhost:5705/pics"
,
"dr_count"
:
11
,
"mode"
:
0
,
"sites"
:
[
{
...
...
@@ -9,16 +10,16 @@
"api"
:
"http://localhost:5705/vod?rule=555影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_cokemv"
,
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=cokemv"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_喵喵"
,
...
...
@@ -27,25 +28,34 @@
"api"
:
"http://localhost:5705/vod?rule=喵喵"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=夜空"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_干饭影视"
,
"name"
:
"干饭影视(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=干饭影视"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=玩偶姐姐"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_瓜皮TV"
,
...
...
@@ -54,16 +64,25 @@
"api"
:
"http://localhost:5705/vod?rule=瓜皮TV"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_看视界"
,
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_莫扎兔"
,
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=莫扎兔"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝莓影视"
,
...
...
@@ -72,16 +91,16 @@
"api"
:
"http://localhost:5705/vod?rule=蓝莓影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_鸭奈飞"
,
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://localhost:5705/vod?rule=鸭奈飞"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
}
],
"parses"
:
[
...
...
@@ -508,6 +527,19 @@
"bilibili"
,
"renrenmi"
],
"lives"
:
[
{
"group"
:
"redirect"
,
"channels"
:
[
{
"name"
:
"直播"
,
"urls"
:
[
"proxy://do=live&type=txt&ext=aHR0cDovL2xvY2FsaG9zdDo1NzA1L2xpdmVz"
]
}
]
}
],
"ijk"
:
[
{
"group"
:
"软解码"
,
...
...
txt/pycms1.json
浏览文件 @
0d16f9b2
{
"dr_count"
:
9
,
"wallpaper"
:
"http://192.168.10.99:5705/pics"
,
"dr_count"
:
11
,
"mode"
:
1
,
"sites"
:
[
{
"key"
:
"dr_555影视"
,
"name"
:
"555影视(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=555影视"
,
"api"
:
"http://192.168.
10.99
:5705/vod?rule=555影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_cokemv"
,
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=cokemv"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"api"
:
"http://192.168.
10.99
:5705/vod?rule=cokemv"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_喵喵"
,
"name"
:
"喵喵(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=喵喵"
,
"api"
:
"http://192.168.
10.99
:5705/vod?rule=喵喵"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.3.224:5705/vod?rule=夜空"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"api"
:
"http://192.168.10.99:5705/vod?rule=夜空"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_干饭影视"
,
"name"
:
"干饭影视(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=干饭影视"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=玩偶姐姐"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"api"
:
"http://192.168.
10.99
:5705/vod?rule=玩偶姐姐"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_瓜皮TV"
,
"name"
:
"瓜皮TV(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=瓜皮TV"
,
"api"
:
"http://192.168.
10.99
:5705/vod?rule=瓜皮TV"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_看视界"
,
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.10.99:5705/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_莫扎兔"
,
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=莫扎兔"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"api"
:
"http://192.168.
10.99
:5705/vod?rule=莫扎兔"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝莓影视"
,
"name"
:
"蓝莓影视(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=蓝莓影视"
,
"api"
:
"http://192.168.
10.99
:5705/vod?rule=蓝莓影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_鸭奈飞"
,
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://192.168.
3.224
:5705/vod?rule=鸭奈飞"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"api"
:
"http://192.168.
10.99
:5705/vod?rule=鸭奈飞"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
}
],
"parses"
:
[
...
...
@@ -508,6 +527,19 @@
"bilibili"
,
"renrenmi"
],
"lives"
:
[
{
"group"
:
"redirect"
,
"channels"
:
[
{
"name"
:
"直播"
,
"urls"
:
[
"proxy://do=live&type=txt&ext=aHR0cDovLzE5Mi4xNjguMTAuOTk6NTcwNS9saXZlcw=="
]
}
]
}
],
"ijk"
:
[
{
"group"
:
"软解码"
,
...
...
txt/pycms2.json
浏览文件 @
0d16f9b2
{
"dr_count"
:
9
,
"wallpaper"
:
"http://cms.nokia.press/pics"
,
"dr_count"
:
11
,
"mode"
:
1
,
"sites"
:
[
{
...
...
@@ -9,16 +10,16 @@
"api"
:
"http://cms.nokia.press/vod?rule=555影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_cokemv"
,
"name"
:
"cokemv(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=cokemv"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_喵喵"
,
...
...
@@ -27,25 +28,34 @@
"api"
:
"http://cms.nokia.press/vod?rule=喵喵"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_夜空"
,
"name"
:
"夜空(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=夜空"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_干饭影视"
,
"name"
:
"干饭影视(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=干饭影视"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_玩偶姐姐"
,
"name"
:
"玩偶姐姐(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=玩偶姐姐"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_瓜皮TV"
,
...
...
@@ -54,16 +64,25 @@
"api"
:
"http://cms.nokia.press/vod?rule=瓜皮TV"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_看视界"
,
"name"
:
"看视界(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=看视界"
,
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_莫扎兔"
,
"name"
:
"莫扎兔(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=莫扎兔"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
},
{
"key"
:
"dr_蓝莓影视"
,
...
...
@@ -72,16 +91,16 @@
"api"
:
"http://cms.nokia.press/vod?rule=蓝莓影视"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"filterable"
:
0
},
{
"key"
:
"dr_鸭奈飞"
,
"name"
:
"鸭奈飞(道长)"
,
"type"
:
1
,
"api"
:
"http://cms.nokia.press/vod?rule=鸭奈飞"
,
"searchable"
:
1
,
"quickSearch"
:
1
,
"filterable"
:
1
"searchable"
:
0
,
"quickSearch"
:
0
,
"filterable"
:
0
}
],
"parses"
:
[
...
...
@@ -508,6 +527,19 @@
"bilibili"
,
"renrenmi"
],
"lives"
:
[
{
"group"
:
"redirect"
,
"channels"
:
[
{
"name"
:
"直播"
,
"urls"
:
[
"proxy://do=live&type=txt&ext=aHR0cDovL2Ntcy5ub2tpYS5wcmVzcy9saXZlcw=="
]
}
]
}
],
"ijk"
:
[
{
"group"
:
"软解码"
,
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录