From 46091025f2a903446677da5904c2f4f35912610f Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Fri, 2 Sep 2022 21:06:11 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E5=A4=96=E7=BD=91=E7=9B=B4=E6=92=AD=E5=9C=B0=E5=9D=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app.py | 2 +- config.py | 1 + readme.md | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app.py b/app.py index 764eace..62061dc 100644 --- a/app.py +++ b/app.py @@ -417,7 +417,7 @@ def random_pics(): def get_live_url(new_conf,mode): host = getHost(mode) live_url = host + '/lives' if new_conf.get('LIVE_MODE', - 1) == 0 else 'https://gitcode.net/qq_26898231/TVBox/-/raw/main/live/0830zb.txt' + 1) == 0 else new_conf.get('LIVE_URL',getHost(2)+'/lives') live_url = base64Encode(live_url) return live_url diff --git a/config.py b/config.py index 4648ecc..e89538b 100644 --- a/config.py +++ b/config.py @@ -33,5 +33,6 @@ UNAME = 'admin' # 管理员账号 PWD = 'drpy' # 管理员密码 MAX_CONTENT_LENGTH = 1 * 1024 * 1024/100 # 100 kB LIVE_MODE = 1 # 0 本地 1外网 +LIVE_URL = 'https://gitcode.net/qq_26898231/TVBox/-/raw/main/live/0830zb.txt' # 外网直播地址 CATE_EXCLUDE = '首页|留言|APP|下载|资讯|新闻|动态' # 动态分类过滤 # {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %} \ No newline at end of file diff --git a/readme.md b/readme.md index 84a8f5f..d7981a9 100644 --- a/readme.md +++ b/readme.md @@ -4,7 +4,7 @@ logo

🗂️A webServer convert web and x5 movie sites to cms api data

- latest version + latest version discussions @@ -34,6 +34,7 @@ - [X] 1.优化了免嗅探的注入变量,封装了fetch_params变量 - [X] 2.一定程度兼容python3高版本,支持termux直装(高于3.9版本首页推荐无法获取) - [X] 3.准备弃坑,基本完结撒花 +- [X] 4.增加自定义配置直播外网地址 ###### 2022/09/01 - [X] 1.增加动态分类排除配置 - [X] 2.优化pdfh,pdfa,pd等函数,支持多个&&写法,自动取第一个 -- GitLab