diff --git a/data/config.example.ini b/data/config.example.ini index 385b095..586b3ad 100644 --- a/data/config.example.ini +++ b/data/config.example.ini @@ -65,7 +65,7 @@ translation_cache_size = 50000 open_live_access_key_id = open_live_access_key_secret = # 在B站直播开放平台创建的项目ID,如果不填,会把请求转发到作者的服务器 -open_live_app_id = +open_live_app_id = 0 # 翻译器配置,索引到下面的配置节。可以以逗号分隔配置多个翻译器,翻译时会自动负载均衡 diff --git a/main.py b/main.py index 4a5946a..9f4a629 100644 --- a/main.py +++ b/main.py @@ -5,6 +5,7 @@ import logging import logging.handlers import os import signal +import sys import webbrowser from typing import * @@ -164,4 +165,4 @@ async def shut_down(): if __name__ == '__main__': - exit(asyncio.run(main())) + sys.exit(asyncio.run(main()))