Merge 29b6f6834d539c8d89d8e08ad8f6d36c6be69b5d into b7a904a67153170d334fdc0d7fbae220ee21f0e9

This commit is contained in:
ootsuka-repos 2025-01-21 02:21:40 +08:00 committed by GitHub
commit c6c9b64c36
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -187,7 +187,7 @@ class TTS_Config:
else:
print(i18n("路径不存在,使用默认配置"))
self.save_configs(configs_path)
with open(configs_path, 'r') as f:
with open(configs_path, "r", encoding="utf-8") as f:
configs = yaml.load(f, Loader=yaml.FullLoader)
return configs
@ -199,7 +199,7 @@ class TTS_Config:
if configs_path is None:
configs_path = self.configs_path
with open(configs_path, 'w') as f:
with open(configs_path, "w", encoding="utf-8") as f:
yaml.dump(configs, f)
def update_configs(self):