fordes123 / ad-filters-subscriber

广告过滤规则订阅器,整合不同来源的规则,帮助你快速构建属于自己的规则集 | Ad Filter Rule Subscriber, integrating rules from various sources to help you quickly build your own rule set
MIT License
176 stars 71 forks source link

大佬,是否能帮我看一下问题出现在哪里吗,我复制了你的项目增加了许多过滤器,然后运行失败了 #28

Closed Shura23 closed 3 months ago

Shura23 commented 3 months ago

项目地址:https://github.com/xiulou23/AdguardHome-demonicAsura?tab=readme-ov-file image 没有增加过滤器时是能运行成功的,增加过滤器后就运行失败了 image

fordes123 commented 3 months ago

项目地址:https://github.com/xiulou23/AdguardHome-demonicAsura?tab=readme-ov-file image 没有增加过滤器时是能运行成功的,增加过滤器后就运行失败了 image

把类似的地方外层的单引号改成双引号 image

像下面这样:

      - name: "HaGeZi's Fake DNS Blocklist"
        path: 'https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/fake.txt'
Shura23 commented 3 months ago

项目地址:https://github.com/xiulou23/AdguardHome-demonicAsura?tab=readme-ov-file image 没有增加过滤器时是能运行成功的,增加过滤器后就运行失败了 image

把类似的地方外层的单引号改成双引号 image

像下面这样:

      - name: "HaGeZi's Fake DNS Blocklist"
        path: 'https://raw.githubusercontent.com/hagezi/dns-blocklists/main/adblock/fake.txt'

image 我改了,目前是提交方面出了问题

fordes123 commented 3 months ago
remote: error: File rule/easylist.txt is 121.14 MB; this exceeds GitHub's file size limit of 100.00 MB       

生成的规则文件太大,github 最大支持 100mb,尝试减少上游规则吧

fordes123 commented 3 months ago

追求大而全的规则集是舍本逐末 规则并非越多越好,它们中大部分的域名你可能一辈子都不会访问,还有很多域名是失效的