修复歌词解析问题

pull/930/merge
lyswhut 2022-03-25 15:52:19 +08:00
parent f1a7862a9c
commit 1f97af6ff1
2 changed files with 3 additions and 3 deletions

View File

@ -28,7 +28,7 @@ export default ({ setting }) => {
})
const getCurrentTime = () => {
return getPlayerCurrentTime() * 1000 + lyric.offset
return getPlayerCurrentTime() * 1000 + lyric.tempOffset
}

View File

@ -97,7 +97,7 @@ module.exports = class Lyric {
this.onPlay(num, this._lines[num].text)
}
_handleLinePlayerOnSetLyric = lyricLines => {
_handleLinePlayerOnSetLyric = (lyricLines, offset) => {
// console.log(lyricLines)
// this._lines = lyricsLines
this.isLineMode = lyricLines.length && !/^<\d+,\d+>/.test(lyricLines[0].text)
@ -148,7 +148,7 @@ module.exports = class Lyric {
})
}
this.onSetLyric(this._lines)
this.onSetLyric(this._lines, offset)
}
play(curTime) {