修复歌词解析问题

pull/930/merge
lyswhut 2022-03-15 10:54:51 +08:00
parent 6779fd7ae5
commit bad6045164
2 changed files with 2 additions and 2 deletions

View File

@ -166,6 +166,6 @@ module.exports = class Lyric {
this.lyric = lyric this.lyric = lyric
this.translationLyric = translationLyric this.translationLyric = translationLyric
this._init() this._init()
this.linePlayer.offset = this.isLineMode ? this.offset + 150 : this.offset this.linePlayer.offset = this.isLineMode ? this.offset + 90 : this.offset
} }
} }

View File

@ -80,7 +80,7 @@ export const tokenRequest = async(url, options = {}) => {
export const lrcTools = { export const lrcTools = {
rxps: { rxps: {
wordLine: /^(\[\d{1,2}:.*\d{1,4}\])\s*(\S+(?:\s+\S+)*)?\s*/, wordLine: /^(\[\d{1,2}:.*\d{1,4}\])\s*(\S+(?:\s+\S+)*)?\s*/,
tagLine: /\[(ver|ti|ar|al|by|kuwo):\s*(\S+(?:\s+\S+)*)\s*\]/, tagLine: /\[(ver|ti|ar|al|offset|by|kuwo):\s*(\S+(?:\s+\S+)*)\s*\]/,
wordTimeAll: /<(-?\d+),(-?\d+)(?:,-?\d+)?>/g, wordTimeAll: /<(-?\d+),(-?\d+)(?:,-?\d+)?>/g,
wordTime: /<(-?\d+),(-?\d+)(?:,-?\d+)?>/, wordTime: /<(-?\d+),(-?\d+)(?:,-?\d+)?>/,
}, },