Update __main__.py

This commit is contained in:
manhduonghn 2023-08-20 17:15:32 +07:00 committed by GitHub
parent 4d26b69075
commit 0744268263
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 0 deletions

View File

@ -123,6 +123,8 @@ def main():
def upload_to_cloudflare(args):
logger.info("Uploading to Cloudflare")
downloader = Downloader("hosts-urls.ini", "./blocklists/hosts.txt")
downloader.download_hosts()
blocklists = upload.get_blocklists(args.blocklists)
blocklists = upload.apply_whitelists(blocklists, args.whitelists)
lists = upload.split_list(blocklists)