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 }} 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 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: