Skip to content

Commit

Permalink
过滤翻译歌词或罗马音歌词中只有“//”的行(#1499
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Jul 30, 2023
1 parent de5e1d7 commit 60f8f10
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions publish/changeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
### 优化

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

### 修复

Expand Down
3 changes: 2 additions & 1 deletion src/common/utils/lyric-font-player/line-player.js
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 60f8f10

Please sign in to comment.