From b1ffce3be563d1d0d4d22d17c3755cf6343672de Mon Sep 17 00:00:00 2001 From: eric2788 Date: Mon, 15 Nov 2021 21:32:36 +0800 Subject: [PATCH 1/3] =?UTF-8?q?=E4=BF=AE=E5=BE=A9=E4=BF=9D=E5=AD=98?= =?UTF-8?q?=E9=BB=98=E8=AA=8D=E8=A8=AD=E5=AE=9A=E6=99=82=E5=87=BA=E7=8F=BE?= =?UTF-8?q?unicode=E8=80=8C=E4=B8=8D=E6=98=AF=E4=B8=AD=E6=96=87=E5=AD=97?= =?UTF-8?q?=E7=AC=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- config/mute.yml | 6 +++--- file_loader.py | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/config/mute.yml b/config/mute.yml index c4b5fcd..5207df6 100644 --- a/config/mute.yml +++ b/config/mute.yml @@ -1,4 +1,4 @@ bad_danmaku: - - '主播是个大伞兵' - - '主播你寄吧谁啊' - - '主播NMSL' \ No newline at end of file +- 主播是个大伞兵 +- 主播你寄吧谁啊 +- 主播NMSL diff --git a/file_loader.py b/file_loader.py index e82933e..f038efa 100644 --- a/file_loader.py +++ b/file_loader.py @@ -28,7 +28,7 @@ def load_config(yml: str, default_values: dict) -> any: default_values[k] = v if default_values.keys() != data.keys(): with open(path, mode='w', encoding='utf-8') as f: - yaml.safe_dump(default_values, f) + yaml.safe_dump(default_values, f, allow_unicode=True) return default_values def load_default_config() -> any: From 4cbb383e336345267c46e0f31c063ca7a65d64b3 Mon Sep 17 00:00:00 2001 From: eric2788 Date: Mon, 15 Nov 2021 21:32:48 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E7=89=88=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/publish.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e1d782c..50d59c2 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,5 +1,5 @@ env: - version: 0.1 + version: 0.2 pyinstaller_version: 4.7 main: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} From 945bd4a0f7cd319a63a887bcf08e11142da15fef Mon Sep 17 00:00:00 2001 From: eric2788 Date: Mon, 15 Nov 2021 21:35:33 +0800 Subject: [PATCH 3/3] update .gitignore --- .gitignore | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 5d89e33..7be6907 100644 --- a/.gitignore +++ b/.gitignore @@ -1,6 +1,6 @@ /data/ /dist/ /build/ -main.spec -start.bat +*.spec +build.bat **/__pycache__/** \ No newline at end of file