jxxghp
78b0063d4c
fix: 清理音乐刮削结果中 album_type 等字段的尾部空格 (#6327)
MusicBrainz 和 ListenBrainz 模块从 API 响应中提取 album_type、
secondary_types 时直接使用 dict.get() 取值,未做 strip() 处理,
导致部分结果带有尾部空格(如 'Album '、'Broadcast ')。
修复:
- MusicBrainz 新增 _stripped() 工具方法,3 处 album_type 赋值统一清理
- ListenBrainz 新增 _stripped() 工具方法,_fresh_release_to_info 中清理
- Pydantic schema 层增加 field_validator 作为兜底安全网
- 新增 9 个回归测试覆盖所有场景
2026-08-15 20:35:02 +08:00
..
2026-08-15 08:03:55 +08:00
2026-08-15 16:36:39 +08:00
2026-08-15 16:36:39 +08:00
2026-08-15 16:36:39 +08:00
2026-08-15 16:36:39 +08:00
2026-08-15 07:15:03 +08:00
2026-08-14 19:53:33 +08:00
2026-08-15 10:20:04 +08:00
2026-08-15 08:03:55 +08:00
2026-08-12 23:15:13 +08:00
2026-08-15 20:35:02 +08:00
2026-08-15 06:58:38 +08:00
2026-08-15 06:58:38 +08:00
2026-08-15 16:36:39 +08:00
2026-08-15 20:35:02 +08:00
2026-08-15 08:03:55 +08:00
2026-08-15 06:58:38 +08:00
2026-08-15 06:58:38 +08:00
2026-08-15 06:58:38 +08:00
2026-08-14 19:53:33 +08:00
2026-08-14 19:53:33 +08:00
2026-08-15 16:36:39 +08:00
2026-08-14 19:53:33 +08:00
2026-08-15 06:58:38 +08:00
2026-08-15 06:58:38 +08:00