AdguardTeam / HostlistCompiler

A simple tool that compiles hosts blocklists from multiple sources
GNU General Public License v3.0
163 stars 20 forks source link

Remove blank lines #30

Open liang-hiwin opened 2 years ago

liang-hiwin commented 2 years ago

NP `$6J%EBC)3IZ@`GN0Q7T

https://github.com/AdguardTeam/HostlistCompiler/issues/25

ameshkov commented 2 years ago

@thb007 could you please show the configuration file as well?

liang-hiwin commented 2 years ago

@thb007 could you please show the configuration file as well?

{
  "name": "dns",
  "description": " rules include adgk, adg-kall, AdGuard DNS filter " ,
  "homepage": "https://xxx",
  "sources": [
    {
      "name": "adg-kall",
      "source": "https://www.xxx.com/adg-kall.txt",
      "type": "hosts",
      "transformations": ["RemoveComments", "Compress","RemoveModifiers","Validate","Deduplicate"]
    },
    {
      "name": "AdGuard DNS filter",
      "source": "https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt",
      "type": "hosts",
      "exclusions_sources": ["../global_exclusions.txt"],
      "transformations": ["RemoveComments", "Compress","RemoveModifiers","Validate","Deduplicate"]
    },
    {
      "name": "adgk手机去广告规则",
      "source": "https://xxx/ADgk.txt",
      "type": "hosts",
      "transformations": ["RemoveComments", "Compress","RemoveModifiers","Validate","Deduplicate"]
    }
  ],
   "transformations": ["RemoveComments", "Compress","RemoveModifiers","Validate","Deduplicate"],
   "exclusions_sources": ["../global_exclusions.txt"]
}