diff --git a/Dockerfile b/Dockerfile index 0e70c1a9..6882dbae 100644 --- a/Dockerfile +++ b/Dockerfile @@ -36,8 +36,7 @@ RUN addgroup -S auto_bangumi -g 1000 && \ mkdir -p "/config" && \ mkdir -p "/data" && \ chmod a+x \ - run.sh \ - setID.sh + run.sh EXPOSE 7892 diff --git a/README.md b/README.md index ac60606b..ce80b13e 100644 --- a/README.md +++ b/README.md @@ -93,9 +93,6 @@ 感谢 [Sean](https://github.com/findix) 提供的大量帮助 感谢 [Rewrite0](https://github.com/Rewrite0) 开发的 WebUI -## 请我喝一杯咖啡 - - ## Licence [MIT licence](https://github.com/EstrellaXD/Auto_Bangumi/blob/main/LICENSE) diff --git a/module/conf/config.py b/module/conf/config.py index 71cda65f..56a88c43 100644 --- a/module/conf/config.py +++ b/module/conf/config.py @@ -52,7 +52,8 @@ class Settings: for key, section in ENV_TO_ATTR.items(): for env, attr in section.items(): if env in os.environ: - settings[key][attr] = self._val_from_env(env, attr) + attr_name = attr[0] if isinstance(attr, tuple) else attr + settings[key][attr_name] = self._val_from_env(env, attr) with open(CONFIG_PATH, "w") as f: json.dump(settings, f, indent=4) return settings diff --git a/module/conf/const.py b/module/conf/const.py index 14f2cb16..0a8fae7e 100644 --- a/module/conf/const.py +++ b/module/conf/const.py @@ -66,21 +66,21 @@ ENV_TO_ATTR = { "AB_DOWNLOAD_PATH": "path", }, "rss_parser": { - "AB_RSS_COLLECTOR": ("enable", lambda e: e.lower() in ("True", "1", "t")), + "AB_RSS_COLLECTOR": ("enable", lambda e: e.lower() in ("true", "1", "t")), "AB_RSS": "link", "AB_NOT_CONTAIN": ("filter", lambda e: e.split("|")), "AB_LANGUAGE": "language", - "AB_ENABLE_TMDB": ("enable_tmdb", lambda e: e.lower() in ("True", "1", "t")), + "AB_ENABLE_TMDB": ("enable_tmdb", lambda e: e.lower() in ("true", "1", "t")), }, "bangumi_manage": { - "AB_RENAME": ("enable", lambda e: e.lower() in ("True", "1", "t")), + "AB_RENAME": ("enable", lambda e: e.lower() in ("true", "1", "t")), "AB_METHOD": "method", - "AB_GROUP_TAG": ("group_tag", lambda e: e.lower() in ("True", "1", "t")), - "AB_EP_COMPLETE": ("eps_complete", lambda e: e.lower() in ("True", "1", "t")), - "AB_REMOVE_BAD_BT": ("remove_bad_torrent", lambda e: e.lower() in ("True", "1", "t")), + "AB_GROUP_TAG": ("group_tag", lambda e: e.lower() in ("true", "1", "t")), + "AB_EP_COMPLETE": ("eps_complete", lambda e: e.lower() in ("true", "1", "t")), + "AB_REMOVE_BAD_BT": ("remove_bad_torrent", lambda e: e.lower() in ("true", "1", "t")), }, "debug": { - "AB_DEBUG_MODE": ("enable", lambda e: e.lower() in ("True", "1", "t")), + "AB_DEBUG_MODE": ("enable", lambda e: e.lower() in ("true", "1", "t")), }, "proxy": { "AB_HTTP_PROXY": "http",