过滤翻译歌词或罗马音歌词中只有“//”的行(#1499)

pull/1446/merge
lyswhut 2023-07-30 14:45:35 +08:00
parent de5e1d7274
commit 60f8f10bb5
2 changed files with 3 additions and 1 deletions

View File

@ -8,6 +8,7 @@
### 优化
- 优化音效设置-环境音效启用、禁用时的操作效果显示,修复禁用环境音效时仍然可以调整增益、新增预设的问题
- 过滤翻译歌词或罗马音歌词中只有“//”的行(#1499
### 修复

View File

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