From f9abbd2e44df0be4219eef638e258b2dfadbe123 Mon Sep 17 00:00:00 2001 From: Muntashir Al-Islam Date: Tue, 20 Jul 2021 17:18:31 +0600 Subject: [PATCH] [UPDATE] List time restrictions for remote files --- config/generate-domains-blocklist.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/config/generate-domains-blocklist.py b/config/generate-domains-blocklist.py index 31fcc59..6bdbe95 100755 --- a/config/generate-domains-blocklist.py +++ b/config/generate-domains-blocklist.py @@ -81,6 +81,12 @@ def parse_list(content, trusted=False): continue name = matches.group(1) names.add(name) + try: + time_restriction = matches.group(2) + if time_restriction: + time_restrictions[name] = time_restriction + except IndexError as e: + pass return names, time_restrictions