From d2e11ad165ac301c29e374c550ed3f2e19ae82af Mon Sep 17 00:00:00 2001 From: Shawn Wen <45581750+KOP-XIAO@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:51:47 +0800 Subject: [PATCH] Ignore unsupported node types and notify --- Scripts/resource-parser.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Scripts/resource-parser.js b/Scripts/resource-parser.js index 161cc0b..2093b61 100644 --- a/Scripts/resource-parser.js +++ b/Scripts/resource-parser.js @@ -1,5 +1,5 @@ /** -☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2026-02-06 16:40⟧ +☑️ 资源解析器 ©𝐒𝐡𝐚𝐰𝐧 ⟦2026-02-11 11:51⟧ ---------------------------------------------------------- 🛠 发现 𝐁𝐔𝐆 请反馈: https://t.me/ShawnKOP_Parser_Bot ⛳️ 关注 🆃🅶 相关频道: https://t.me/QuanX_API @@ -3309,13 +3309,19 @@ function Clash2QX(cnt) { node = CVL2QX(node) } else { // not support type PNS = PNS+1 + if (Pdbg==1) { // 通知提示 + $notify("不支持该类型节点,已忽略",typecc,JSON.stringify(node)) + } + typecc="NS" } node = Pudp0 != 0 ? XUDP(node,Pudp0) : node node = Ptfo0 != 0 ? XTFO(node,Ptfo0) : node + if (typecc!="NS") { node=node.replace(/^([^,]*)\s+/g, (match, p1) => { // 某些ipv6节点空格问题 return p1.replace(/\s+/g, ''); }); nodelist.push(node) + } }catch (e) { $notify(`⚠️该节点解析错误, 暂时已忽略处理`,`可点击通知并发送链接反馈至 bot`,JSON.stringify(node),bug_link ) $notify(`⚠️错误内容如下`,`可复制错误内容到反馈 bot`,JSON.stringify(node)+"\n\n"+e)