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")),