From 1fc5cf0aa5e39664b78b65f0eb3d6a44c8bc50de Mon Sep 17 00:00:00 2001 From: lyswhut Date: Sat, 6 Jan 2024 20:14:56 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=8D=E5=86=8D=E4=B8=A2=E5=BC=83=E9=85=B7?= =?UTF-8?q?=E6=88=91=E6=9F=90=E4=BA=9B=E5=B8=A6=E7=BF=BB=E8=AF=91=E6=AD=8C?= =?UTF-8?q?=E8=AF=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/renderer/utils/musicSdk/kw/lyric.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/renderer/utils/musicSdk/kw/lyric.js b/src/renderer/utils/musicSdk/kw/lyric.js index 4c5c0863..41264ce0 100644 --- a/src/renderer/utils/musicSdk/kw/lyric.js +++ b/src/renderer/utils/musicSdk/kw/lyric.js @@ -166,7 +166,7 @@ export default { 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') // if (lrc.length * 0.4 < lrcT.length) { // 翻译数量需大于歌词数量的0.4倍,否则认为没有翻译 // const tItem = lrc.pop()