From 551333f52ad1c9f71e3982c132728b7fa9d87d15 Mon Sep 17 00:00:00 2001 From: hjdhnx Date: Wed, 31 Aug 2022 16:34:40 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E9=BB=98=E8=AE=A4=E7=9B=B4?= =?UTF-8?q?=E6=92=AD=E6=BA=90=E4=B8=BA=E5=A4=96=E9=93=BE=E6=BA=90,?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=89=8B=E5=8A=A8=E8=B0=83=E9=85=8D=E7=BD=AE?= =?UTF-8?q?=E4=B8=BA=E6=9C=AC=E5=9C=B0=E6=BA=90?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config.py | 1 + templates/config.txt | 2 +- txt/issue.txt | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config.py b/config.py index 7a1d731..57fd59e 100644 --- a/config.py +++ b/config.py @@ -30,4 +30,5 @@ OCR_API = 'http://dm.mudery.com:10000' # 验证码识别接口,传参数data UNAME = 'admin' # 管理员账号 PWD = 'drpy' # 管理员密码 MAX_CONTENT_LENGTH = 1 * 1024 * 1024/100 # 100 kB +LIVE_MODE = 1 # 0 本地 1外网 # {% if config.WALL_PAPER %}"wallpaper":"{{ config.WALL_PAPER }}",{% endif %} \ No newline at end of file diff --git a/templates/config.txt b/templates/config.txt index e62d66a..38f2450 100644 --- a/templates/config.txt +++ b/templates/config.txt @@ -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={{ base64Encode(host+'/lives') }}"]}]}], +"lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={% if config.LIVE_MODE==0 %}{{base64Encode(host+'/lives')}}{% else %}{{ base64Encode('https://gitcode.net/qq_26898231/TVBox/-/raw/main/live/0830zb.txt')}}{% endif %}"]}]}], "ijk": [{ "group": "软解码", "options": [{ diff --git a/txt/issue.txt b/txt/issue.txt index 7c89c19..205ad97 100644 --- a/txt/issue.txt +++ b/txt/issue.txt @@ -17,5 +17,6 @@ assert subprocess.call( "lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext=aHR0cHM6Ly9hZ2l0LmFpL2xjeC8xMS9yYXcvYnJhbmNoL21hc3Rlci9saXZl"]}]}], 下面格式原版tv_box才能用? "live","urls":["proxy://do=live&type=txt&ext=aHR0cHM6Ly9naXRjb2RlLm5ldC9xcV8yNjg5ODIzMS9UVkJveC8tL3Jhdy9tYWluL2xpdmUvMDgzMHpiLnR4dA=="]}]}], +"lives":[{"group":"redirect","channels":[{"name":"直播","urls":["proxy://do=live&type=txt&ext={{ base64Encode(host+'/lives') }}"]}]}], -- GitLab