Skip to content

Commit

Permalink
Merge pull request #30 from brave/ignore-easylist-downloads-adblockpl…
Browse files Browse the repository at this point in the history
…us-org-checksums

Ignore checksums from easylist-downloads.adblockplus.org
  • Loading branch information
antonok-edm authored Jan 15, 2025
2 parents d2abb33 + 2659182 commit 27fb5e7
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion update-lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,10 @@ def move_downloaded_file(filename, url, output_dir):
output_file_path = os.path.join(output_dir, output_file_name)

try:
validate_checksum(filename)
if url.startswith("https://easylist-downloads.adblockplus.org/"):
print(f"ignoring checksum calculation for {url}")
else:
validate_checksum(filename)
logger.info(f"moving {filename} to {output_file_path}")
shutil.move(filename, output_file_path)
except Exception as e:
Expand Down

0 comments on commit 27fb5e7

Please sign in to comment.