优化本地歌曲换源匹配机制

This commit is contained in:
lyswhut
2024-03-08 11:54:00 +08:00
parent 9d8fe4be06
commit 45fc8c77b6
6 changed files with 40 additions and 36 deletions
+1
View File
@@ -100,6 +100,7 @@ const parseTools = {
return str.replace(/^[\S\s]*?LyricContent="/, '').replace(/"\/>[\S\s]*?$/, '')
},
getIntv(interval) {
if (!interval) return 0
if (!interval.includes('.')) interval += '.0'
let arr = interval.split(/:|\./)
while (arr.length < 3) arr.unshift('0')