chore: 整理配置与功能,优化B站解析流程

1. 从.gitignore移除config.example.toml并新增该示例配置文件
2. 新增项目规则文档说明开发环境要求
3. 修复config加载时的编码缺失问题
4. 重写bili_login.py,优化扫码登录流程与凭证输出
5. 重构B站解析器:简化下载逻辑,改用bilibili_api内置下载,优化音视频合并流程
This commit is contained in:
2026-05-12 12:38:34 +08:00
parent dcfb5d4892
commit 2cb55992f9
6 changed files with 254 additions and 235 deletions

View File

@@ -216,8 +216,8 @@ class Config:
self.logger.error(f"示例配置文件 {example_path} 不存在,无法生成配置")
raise ConfigNotFoundError(message=f"示例配置文件 {example_path} 不存在")
content = example_path.read_text()
self.path.write_text(content)
content = example_path.read_text(encoding='utf-8')
self.path.write_text(content, encoding='utf-8')
# 通过属性访问配置
@property