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) {