diff --git a/app/src/main/assets/web/rssSource/index.js b/app/src/main/assets/web/rssSource/index.js index 8d050825d..70c339829 100644 --- a/app/src/main/assets/web/rssSource/index.js +++ b/app/src/main/assets/web/rssSource/index.js @@ -38,7 +38,7 @@ function showTab(tabName) { } // 源列表列表标签构造函数 function newRule(rule) { - return `${rule.sourceName}${rule.sourceUrl}`; + return `${rule.sourceName}${rule.sourceUrl}`; } // 缓存规则列表 var RuleSources = []; @@ -350,7 +350,7 @@ $('#RuleList').addEventListener('click', e => { let editRule = null; if (e.target && e.target.getAttribute('name') == 'rule') { editRule = rule2json(); - json2rule(RuleSources.find(x => x.sourceUrl == e.target.id)); + json2rule(RuleSources.find(x => hex_md5(x.sourceUrl) == e.target.id)); } else return; if (editRule.sourceUrl == '') return; if (editRule.sourceName == '') editRule.sourceName = editRule.sourceUrl.replace(/.*?\/\/|\/.*/g, '');