提交 40422011 编写于 作者: H hjdhnx

升级3.9.4

上级 1435b28b
...@@ -38,7 +38,8 @@ USE_PY = 0 # 开启py源 ...@@ -38,7 +38,8 @@ USE_PY = 0 # 开启py源
JS_MODE = 0 # js模式 0 drpy服务器解析 1 pluto本地解析 JS_MODE = 0 # js模式 0 drpy服务器解析 1 pluto本地解析
MAX_CONTENT_LENGTH = 1 * 1024 * 100 # 100 kB MAX_CONTENT_LENGTH = 1 * 1024 * 100 # 100 kB
LIVE_MODE = 0 # 0 本地 1外网 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|下载|资讯|新闻|动态|明星|专题|最新|排行' # 动态分类过滤 CATE_EXCLUDE = '首页|留言|APP|下载|资讯|新闻|动态|明星|专题|最新|排行' # 动态分类过滤
TAB_EXCLUDE = '猜你|喜欢|APP|下载|剧情|简介' # 动态线路名过滤 TAB_EXCLUDE = '猜你|喜欢|APP|下载|剧情|简介' # 动态线路名过滤
# {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %} # {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %}
......
此差异已折叠。
...@@ -5,7 +5,7 @@ ...@@ -5,7 +5,7 @@
# Date : 2022/9/6 # Date : 2022/9/6
import json import json
import os import os
import re
from flask import Blueprint,abort,render_template,render_template_string,url_for,redirect,make_response,send_from_directory,request 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 from controllers.service import storage_service,rules_service
...@@ -13,7 +13,7 @@ from controllers.classes import getClasses,getClassInfo ...@@ -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 utils.files import getPics,custom_merge,getAlist,get_live_url,get_multi_rules,getCustonDict
from js.rules import getRules,getPys from js.rules import getRules,getPys
from utils.encode import parseText from utils.encode import parseText,base64Encode,baseDecode
from base.R import R from base.R import R
from utils.system import getHost,is_linux from utils.system import getHost,is_linux
from utils.cfg import cfg from utils.cfg import cfg
...@@ -152,13 +152,21 @@ def custom_static_libs(filename): ...@@ -152,13 +152,21 @@ def custom_static_libs(filename):
@home.route('/lives') @home.route('/lives')
def get_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): if not os.path.exists(live_path):
with open(live_path,mode='w+',encoding='utf-8') as f: with open(live_path,mode='w+',encoding='utf-8') as f:
f.write('') f.write('')
with open(live_path,encoding='utf-8') as f: with open(live_path,encoding='utf-8') as f:
live_text = f.read() 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 = make_response(live_text)
response.headers['Content-Type'] = 'text/plain; charset=utf-8' response.headers['Content-Type'] = 'text/plain; charset=utf-8'
return response return response
......
3.9.3 3.9.4
\ No newline at end of file \ No newline at end of file
...@@ -49,6 +49,7 @@ ...@@ -49,6 +49,7 @@
[获取本地设备信息](https://m.jb51.net/article/140716.htm) [获取本地设备信息](https://m.jb51.net/article/140716.htm)
###### 2022/10/12 ###### 2022/10/12
- [X] js模式2动态配置链接支持多种壳子 - [X] js模式2动态配置链接支持多种壳子
- [X] 增加/lives?path=base/live.txt路由
###### 2022/10/11 ###### 2022/10/11
- [X] 增加自建解析加密示例 - [X] 增加自建解析加密示例
- [X] 发布3.9.0镜像,重大升级,优化js装载速度 - [X] 发布3.9.0镜像,重大升级,优化js装载速度
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册