修复歌词标签解析格式没有严格按照标准的问题(#2855)

This commit is contained in:
lyswhut
2026-07-06 20:56:58 +08:00
parent af4603d87b
commit 75ba99d9d1
6 changed files with 19 additions and 14 deletions
+1 -1
View File
@@ -42,7 +42,7 @@ const parseLyric = str => {
let lxlyric = str.replace(/\[((\d+),\d+)\].*/g, str => {
let result = str.match(/\[((\d+),\d+)\].*/)
let time = parseInt(result[2])
let ms = time % 1000
let ms = (time % 1000).toString().padStart(3, '0')
time /= 1000
let m = parseInt(time / 60).toString().padStart(2, '0')
time %= 60