From ca3837165594a65d020a01dacaf4258649f08355 Mon Sep 17 00:00:00 2001 From: EstrellaXD Date: Mon, 25 Jul 2022 19:40:32 +0800 Subject: [PATCH] =?UTF-8?q?2.5.19=20-=20=E4=BF=AE=E5=A4=8D=E8=AF=AD?= =?UTF-8?q?=E8=A8=80=E9=80=89=E6=8B=A9=E4=B8=8D=E7=94=9F=E6=95=88=E7=9A=84?= =?UTF-8?q?bug?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Dockerfile | 2 ++ src/conf/const.py | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Dockerfile b/Dockerfile index 8460304e..82bda59a 100644 --- a/Dockerfile +++ b/Dockerfile @@ -15,4 +15,6 @@ ADD ./templates /templates RUN chmod a+x run.sh +EXPOSE 7892 + CMD ["./run.sh"] diff --git a/src/conf/const.py b/src/conf/const.py index 481b4b83..4e13adef 100644 --- a/src/conf/const.py +++ b/src/conf/const.py @@ -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")),