From 7620110317d2ae8a4ada44bc42f9896526d9e5ef Mon Sep 17 00:00:00 2001 From: lyswhut Date: Tue, 6 Feb 2024 10:37:35 +0800 Subject: [PATCH] =?UTF-8?q?=E5=8A=A0=E9=95=BF=E8=87=AA=E5=AE=9A=E4=B9=89?= =?UTF-8?q?=E6=BA=90=E8=BF=94=E5=9B=9E=E7=9A=84=E6=AD=8C=E8=AF=8D=E9=95=BF?= =?UTF-8?q?=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- android/app/src/main/assets/script/user-api-preload.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/android/app/src/main/assets/script/user-api-preload.js b/android/app/src/main/assets/script/user-api-preload.js index f9a8f39..12b79d6 100644 --- a/android/app/src/main/assets/script/user-api-preload.js +++ b/android/app/src/main/assets/script/user-api-preload.js @@ -170,12 +170,12 @@ globalThis.lx_setup = (key, id, name, description, version, author, homepage, ra const verifyLyricInfo = (info) => { if (typeof info != 'object' || typeof info.lyric != 'string') throw new Error('failed') - if (info.lyric.length > 4096) throw new Error('failed') + if (info.lyric.length > 51200) throw new Error('failed') return { lyric: info.lyric, - tlyric: (typeof info.tlyric == 'string' && info.tlyric.length < 4096) ? info.tlyric : null, - mlyric: typeof info.mlyric == 'string' && info.mlyric.length < 4096 ? info.mlyric : null, - lxlyric: typeof info.lxlyric == 'string' && info.lxlyric.length < 4096 ? info.lxlyric : null, + tlyric: (typeof info.tlyric == 'string' && info.tlyric.length < 5120) ? info.tlyric : null, + rlyric: (typeof info.rlyric == 'string' && info.rlyric.length < 5120) ? info.rlyric : null, + lxlyric: (typeof info.lxlyric == 'string' && info.lxlyric.length < 8192) ? info.lxlyric : null, } }