Development
This commit is contained in:
parent
909030bace
commit
721670469e
3 changed files with 43 additions and 17 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue