Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
peater12
dr_py
提交
40422011
dr_py
项目概览
peater12
/
dr_py
落后 Fork 源项目 2 个版本
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,发现更多精彩内容 >>
提交
40422011
编写于
10月 12, 2022
作者:
H
hjdhnx
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
升级3.9.4
上级
1435b28b
变更
5
展开全部
隐藏空白更改
内联
并排
Showing
5 changed file
with
16 addition
and
5 deletion
+16
-5
base/config.py
base/config.py
+2
-1
base/live.txt
base/live.txt
+1
-0
controllers/home.py
controllers/home.py
+11
-3
js/version.txt
js/version.txt
+1
-1
readme.md
readme.md
+1
-0
未找到文件。
base/config.py
浏览文件 @
40422011
...
...
@@ -38,7 +38,8 @@ USE_PY = 0 # 开启py源
JS_MODE
=
0
# js模式 0 drpy服务器解析 1 pluto本地解析
MAX_CONTENT_LENGTH
=
1
*
1024
*
100
# 100 kB
LIVE_MODE
=
0
# 0 本地 1外网
LIVE_URL
=
'https://gitcode.net/bd/v/-/raw/main/live/zb.txt'
# 初始化外网直播地址(后续在管理界面改)
# LIVE_URL = 'https://gitcode.net/bd/v/-/raw/main/live/zb.txt' # 初始化外网直播地址(后续在管理界面改)
LIVE_URL
=
'https://raw.fastgit.org/zhanghong1983/TVBOXZY/main/TV/live.txt'
# 初始化外网直播地址(后续在管理界面改)
CATE_EXCLUDE
=
'首页|留言|APP|下载|资讯|新闻|动态|明星|专题|最新|排行'
# 动态分类过滤
TAB_EXCLUDE
=
'猜你|喜欢|APP|下载|剧情|简介'
# 动态线路名过滤
# {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %}
...
...
base/live.txt
0 → 100644
浏览文件 @
40422011
此差异已折叠。
点击以展开。
controllers/home.py
浏览文件 @
40422011
...
...
@@ -5,7 +5,7 @@
# Date : 2022/9/6
import
json
import
os
import
re
from
flask
import
Blueprint
,
abort
,
render_template
,
render_template_string
,
url_for
,
redirect
,
make_response
,
send_from_directory
,
request
from
controllers.service
import
storage_service
,
rules_service
...
...
@@ -13,7 +13,7 @@ from controllers.classes import getClasses,getClassInfo
from
utils.files
import
getPics
,
custom_merge
,
getAlist
,
get_live_url
,
get_multi_rules
,
getCustonDict
from
js.rules
import
getRules
,
getPys
from
utils.encode
import
parseText
from
utils.encode
import
parseText
,
base64Encode
,
baseDecode
from
base.R
import
R
from
utils.system
import
getHost
,
is_linux
from
utils.cfg
import
cfg
...
...
@@ -152,13 +152,21 @@ def custom_static_libs(filename):
@
home
.
route
(
'/lives'
)
def
get_lives
():
live_path
=
'base/直播.txt'
# ?path=base/live.txt
path
=
getParmas
(
'path'
)
live_path
=
path
or
'base/直播.txt'
if
not
os
.
path
.
exists
(
live_path
):
with
open
(
live_path
,
mode
=
'w+'
,
encoding
=
'utf-8'
)
as
f
:
f
.
write
(
''
)
with
open
(
live_path
,
encoding
=
'utf-8'
)
as
f
:
live_text
=
f
.
read
()
if
len
(
live_text
)
>
100
and
live_text
.
find
(
'http'
)
<
0
:
try
:
live_text
=
baseDecode
(
live_text
)
logger
.
info
(
f
'
{
path
}
base64解码完毕'
)
except
:
pass
response
=
make_response
(
live_text
)
response
.
headers
[
'Content-Type'
]
=
'text/plain; charset=utf-8'
return
response
...
...
js/version.txt
浏览文件 @
40422011
3.9.3
\ No newline at end of file
3.9.4
\ No newline at end of file
readme.md
浏览文件 @
40422011
...
...
@@ -49,6 +49,7 @@
[
获取本地设备信息
](
https://m.jb51.net/article/140716.htm
)
###### 2022/10/12
-
[X] js模式2动态配置链接支持多种壳子
-
[X] 增加/lives?path=base/live.txt路由
###### 2022/10/11
-
[X] 增加自建解析加密示例
-
[X] 发布3.9.0镜像,重大升级,优化js装载速度
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录