1. 蓝奏云域名适配

This commit is contained in:
QAIU
2025-05-28 17:01:50 +08:00
parent 8b6aad17f4
commit f30027dd13
4 changed files with 7 additions and 3 deletions

View File

@@ -25,7 +25,7 @@ public enum PanDomainTemplate {
// 网盘定义
LZ("蓝奏云",
compile("https://(?:[a-zA-Z\\d-]+\\.)?lanzou[a-z]\\.com/(.+/)?(?<KEY>.+)"),
compile("https://(?:[a-zA-Z\\d-]+\\.)?((lanzou[a-z])|(lanzn))\\.com/(.+/)?(?<KEY>.+)"),
"https://lanzoux.com/{shareKey}",
LzTool.class),

View File

@@ -51,7 +51,7 @@ public class LzTool extends PanBase {
String jsText = getJsByPwd(pwd, html, "document.getElementById('rpt')");
ScriptObjectMirror scriptObjectMirror = JsExecUtils.executeDynamicJs(jsText, "down_p");
getDownURL(sUrl, client, scriptObjectMirror);
} catch (ScriptException | NoSuchMethodException e) {
} catch (Exception e) {
fail(e, "js引擎执行失败");
}
} else {