refactor(core): ♻️ 移除订阅名依赖并优化节点重命名规则

优化 substore 脚本逻辑,移除 peiqian-rename.js 和 yuetong-rename.js
中对 _subName 的硬编码判断,使其更适合在单条订阅中复用。

同时在 rename.js 中新增流媒体文案清理规则,并同步更新 README.md
文档,说明各脚本在单订阅与整合订阅中的最佳实践建议。
This commit is contained in:
2026-05-19 00:37:11 +08:00
parent c6f9588738
commit 0733bdcbe2
4 changed files with 11 additions and 9 deletions
+2 -2
View File
@@ -1,10 +1,10 @@
/**
* PeiQian 专用节点清理脚本
* 只处理 _subName 为 PeiQian 节点,避免把“推荐/用途/hy2”等文案规则误伤到其他订阅
* 负责清理推荐、用途、hy2、倍率等 PeiQian 节点文案
*/
function operator(proxies) {
return proxies.map(proxy => {
if (proxy._subName !== 'PeiQian' || typeof proxy.name !== 'string') {
if (typeof proxy.name !== 'string') {
return proxy;
}