Development

This commit is contained in:
Matthew Grotke 2026-06-09 11:00:37 -04:00
parent 909030bace
commit 721670469e
3 changed files with 43 additions and 17 deletions

View file

@ -64,11 +64,16 @@ def download_blocklists(data):
return not any_fail
LAST_DL_FILE = BLOCKLIST_DIR / ".last-dl"
def main():
check_root()
data = load_config()
print("Downloading blocklists ==============================================")
success = download_blocklists(data)
BLOCKLIST_DIR.mkdir(exist_ok=True)
LAST_DL_FILE.write_text(str(int(__import__('time').time())))
if not success:
print("WARNING: One or more downloads failed.")
sys.exit(1)