- 修复语言选择不生效的bug
This commit is contained in:
EstrellaXD
2022-07-25 19:40:32 +08:00
parent d7d8e54e99
commit ca38371655
2 changed files with 4 additions and 2 deletions

View File

@@ -15,4 +15,6 @@ ADD ./templates /templates
RUN chmod a+x run.sh
EXPOSE 7892
CMD ["./run.sh"]

View File

@@ -19,7 +19,7 @@ DEFAULT_SETTINGS = {
"dev_debug": False,
"eps_complete": False,
"webui_port": 7892,
"title_language": "zh",
"language": "zh",
"tmdb_api": "32b19d6a05b512190a056fa4e747cbbc",
"enable_tmdb": False,
"socks": None,
@@ -49,7 +49,7 @@ ENV_TO_ATTR = {
"AB_REMOVE_BAD_BT": ("remove_bad_torrent", lambda e: e.lower() in ("true", "1", "t")),
"AB_WEBUI_PORT": ("webui_port", lambda e: int(e)),
"AB_HTTP_PROXY": "http_proxy",
"AB_LANGUAGE": "title_language",
"AB_LANGUAGE": "language",
"AB_ENABLE_TMDB": ("enable_tmdb", lambda e: e.lower() in ("true", "1", "t")),
"AB_SOCKS": "socks",
"AB_RENAME": ("enable_rename", lambda e: e.lower() in ("true", "1", "t")),