feat: implement filename parser with hyphen rules

This commit is contained in:
yyc12345 committed 2026-10-22 20:19:26 +08:00
1 parent bb040ef89b
commit d6677b323b
3 files changed
+503 -1

No files matched your search

+2 -1
View File
@@ -43,7 +43,8 @@
- 仅认半角 `-`(全角 `-`、破折号 `—`/`–` 等不认)
- 无 `-`:歌手为空,整串 `Trim()` 为歌曲名
- 有 `-`(多个时**以最后一个分割**):前段归歌手、后段归歌曲名(粗暴分配,交换按钮兜底),各自 `Trim()`
- 恰好一个 `-`:前段归歌手、后段归歌曲名(粗暴分配,交换按钮兜底),各自 `Trim()`
- 多个 `-`:歌手为空,步骤二输入的整串 `Trim()` 为歌曲名
**示例**:`A - B (Live - Tokyo)(修正版).mp3` → 歌手 `A`,歌曲名 `B`,注释 `Live - Tokyo 修正版`