From 60f8f10bb56c414b3f2eb0c9335d98e1b3904e35 Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sun, 30 Jul 2023 14:45:35 +0800 Subject: [PATCH] =?UTF-8?q?=E8=BF=87=E6=BB=A4=E7=BF=BB=E8=AF=91=E6=AD=8C?= =?UTF-8?q?=E8=AF=8D=E6=88=96=E7=BD=97=E9=A9=AC=E9=9F=B3=E6=AD=8C=E8=AF=8D?= =?UTF-8?q?=E4=B8=AD=E5=8F=AA=E6=9C=89=E2=80=9C//=E2=80=9D=E7=9A=84?= =?UTF-8?q?=E8=A1=8C=EF=BC=88#1499=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- publish/changeLog.md | 1 + src/common/utils/lyric-font-player/line-player.js | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/publish/changeLog.md b/publish/changeLog.md index e6d229b0..8752fb28 100644 --- a/publish/changeLog.md +++ b/publish/changeLog.md @@ -8,6 +8,7 @@ ### 优化 - 优化音效设置-环境音效启用、禁用时的操作效果显示,修复禁用环境音效时仍然可以调整增益、新增预设的问题 +- 过滤翻译歌词或罗马音歌词中只有“//”的行(#1499) ### 修复 diff --git a/src/common/utils/lyric-font-player/line-player.js b/src/common/utils/lyric-font-player/line-player.js index dff64514..3844b162 100644 --- a/src/common/utils/lyric-font-player/line-player.js +++ b/src/common/utils/lyric-font-player/line-player.js @@ -29,7 +29,8 @@ const parseExtendedLyric = (lrcLinesMap, extendedLyric) => { if (result) { const timeField = result[0] const text = line.replace(timeFieldExp, '').trim() - if (text) { + // https://github.com/lyswhut/lx-music-desktop/issues/1499 + if (text && text != '//') { const times = timeField.match(timeExp) if (times == null) continue for (let time of times) {