We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d629dd6 commit 726f10aCopy full SHA for 726f10a
1 file changed
src/core/player/LyricManager.ts
@@ -523,7 +523,13 @@ class LyricManager {
523
if (!lyric) return { lrcData: [], yrcData: [] };
524
// YRC 直接解析
525
if (format === "yrc") {
526
- const lines = parseYrc(lyric) || [];
+ let lines: LyricLine[] = [];
527
+ // 检测是否为 XML 格式 (QRC)
528
+ if (lyric.trim().startsWith("<") || lyric.includes("<QrcInfos>")) {
529
+ lines = this.parseQRCLyric(lyric);
530
+ } else {
531
+ lines = parseYrc(lyric) || [];
532
+ }
533
statusStore.usingTTMLLyric = false;
534
return await this.applyChineseVariant({ lrcData: [], yrcData: lines });
535
}
0 commit comments