From 595c79775163ff353a97fdcb7cd70d913911bfad Mon Sep 17 00:00:00 2001 From: qnnp Date: Sun, 28 Jul 2024 18:22:30 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=BF=E6=8D=A2=E6=AD=A3=E5=88=99=E8=A1=A8?= =?UTF-8?q?=E8=BE=BE=E5=BC=8F=E4=BB=A5=E6=94=AF=E6=8C=81=E5=A4=9A=E5=A4=84?= =?UTF-8?q?=E6=9B=BF=E6=8D=A2?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 在处理下载信息的元数据时,将替换逻辑从仅替换第一个匹配项修改为替换所有匹配项。这样可以确保歌手名中的所有分隔符都能被正确替换为分号,提高数据处理的准确性。 Signed-off-by: qnnp --- src/renderer/store/download/action.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/store/download/action.ts b/src/renderer/store/download/action.ts index 92e35abe..8a502cb0 100644 --- a/src/renderer/store/download/action.ts +++ b/src/renderer/store/download/action.ts @@ -167,7 +167,7 @@ const saveMeta = (downloadInfo: LX.Download.ListItem) => { } void window.lx.worker.download.writeMeta(downloadInfo.metadata.filePath, { title: downloadInfo.metadata.musicInfo.name, - artist: downloadInfo.metadata.musicInfo.singer?.replace(/、/,';'), + artist: downloadInfo.metadata.musicInfo.singer?.replace(/、/g,';'), album: downloadInfo.metadata.musicInfo.meta.albumName, APIC: imgUrl, }, lrcData)