提交 46091025 编写于 作者: H hjdhnx

增加自定义外网直播地址

上级 ada41745
......@@ -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
......
......@@ -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
......@@ -4,7 +4,7 @@
<a href="https://alist.nn.ci"><img height="100px" alt="logo" src="https://gitcode.net/qq_32394351/dr_py/-/raw/1fe0e082b1ceacc4469d7f175a605cc2edf0bab0/static/img/icon.png"/></a>
<p><em>🗂️A webServer convert web and x5 movie sites to cms api data</em></p>
<a href="https://gitcode.net/qq_32394351/dr_py/-/releases">
<img src="https://img.shields.io/badge/version-3.0.5-blue" alt="latest version" />
<img src="https://img.shields.io/badge/version-3.0.6-blue" alt="latest version" />
</a>
<a href="https://gitcode.net/qq_32394351/dr_py/-/issues">
<img src="https://img.shields.io/badge/discussions-2-orange" alt="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等函数,支持多个&&写法,自动取第一个
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册