diff --git a/config.py b/config.py index 7a1d7317264ea7014d4a7e54cac62a9c7f1511be..57fd59eb38100328db32ca78e1f350928b866084 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 e62d66ae69c43aef4582668cb1a66eba269cbc42..38f2450d69832cc648982ca6c82642e193f32a7d 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 7c89c193e83be2841c3dbde5f093d6f373a58f52..205ad97278b1bab3bba8ad14f09257f23682199d 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') }}"]}]}],