From 736c0facf82a5543790f18cadf5bbcc8f8227da4 Mon Sep 17 00:00:00 2001
From: Estrella Pan <33726646+EstrellaXD@users.noreply.github.com>
Date: Fri, 17 Feb 2023 12:28:59 +0800
Subject: [PATCH 1/5] Update README.md
---
README.md | 3 ---
1 file changed, 3 deletions(-)
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)
From db38f7d9191bcc49688c21c147af344c244fa5d0 Mon Sep 17 00:00:00 2001
From: EstrellaXD
Date: Mon, 6 Mar 2023 14:29:27 +0800
Subject: [PATCH 2/5] Fix Dockerfile
---
Dockerfile | 3 +--
1 file changed, 1 insertion(+), 2 deletions(-)
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
From 21734a2ed38dc80583d451363e06481d3fe925b2 Mon Sep 17 00:00:00 2001
From: Bluefissure
Date: Tue, 7 Mar 2023 16:28:51 -0600
Subject: [PATCH 3/5] fix: attr as key in settings
tuple attr cannot be key (causing docker failing hard when creating the config file)
---
module/conf/config.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/module/conf/config.py b/module/conf/config.py
index 71cda65f..462e1e93 100644
--- a/module/conf/config.py
+++ b/module/conf/config.py
@@ -52,7 +52,7 @@ 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)
+ settings[key][env] = self._val_from_env(env, attr)
with open(CONFIG_PATH, "w") as f:
json.dump(settings, f, indent=4)
return settings
From 4871dbe14c0164cb73260b0db6843c010f83c635 Mon Sep 17 00:00:00 2001
From: Bluefissure
Date: Tue, 7 Mar 2023 16:38:47 -0600
Subject: [PATCH 4/5] Update config.py
---
module/conf/config.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/module/conf/config.py b/module/conf/config.py
index 462e1e93..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][env] = 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
From 219fe0cd17ae90f75d9ee8151ccce7a657aa8971 Mon Sep 17 00:00:00 2001
From: Bluefissure
Date: Tue, 7 Mar 2023 22:43:37 +0000
Subject: [PATCH 5/5] fix: e.lower() will never be 'True'
---
module/conf/const.py | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
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",