修复歌词解析问题
parent
6779fd7ae5
commit
bad6045164
|
@ -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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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+)?>/,
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue