不再丢弃酷我某些带翻译歌词

This commit is contained in:
lyswhut 2024-01-06 20:15:35 +08:00
parent 18eae2df36
commit f681401198

View File

@ -166,7 +166,7 @@ export default {
if (!isLyricx && lyricxTag.test(item.text)) isLyricx = true if (!isLyricx && lyricxTag.test(item.text)) isLyricx = true
} }
if (!isLyricx && lrcT.length > lrc.length * 0.3) { if (!isLyricx && lrcT.length > lrc.length * 0.3 && lrc.length - lrcT.length > 6) {
throw new Error('failed') throw new Error('failed')
// if (lrc.length * 0.4 < lrcT.length) { // 翻译数量需大于歌词数量的0.4倍,否则认为没有翻译 // if (lrc.length * 0.4 < lrcT.length) { // 翻译数量需大于歌词数量的0.4倍,否则认为没有翻译
// const tItem = lrc.pop() // const tItem = lrc.pop()