From 2db97851b6e07fa998bafae5dcd9b70c8e4e3abe Mon Sep 17 00:00:00 2001 From: gently <1243610+gentlyxu@users.noreply.github.com> Date: Sun, 18 Apr 2021 13:57:19 +0800 Subject: [PATCH] added MD5 checksum file --- anti-ad-easylist.txt | 2 +- anti-ad-easylist.txt.md5 | 1 + scripts/tools/easylist-extend.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) create mode 100644 anti-ad-easylist.txt.md5 diff --git a/anti-ad-easylist.txt b/anti-ad-easylist.txt index 5a2710c2..74dbfbb2 100644 --- a/anti-ad-easylist.txt +++ b/anti-ad-easylist.txt @@ -1,5 +1,5 @@ !Title: anti-AD -!Version: 20210417122435 +!Version: 20210418135521 !Homepage: https://github.com/privacy-protection-tools/anti-AD !Total lines: 38501 ||*.wap.xsbiquge.com^ diff --git a/anti-ad-easylist.txt.md5 b/anti-ad-easylist.txt.md5 new file mode 100644 index 00000000..f4f8bd31 --- /dev/null +++ b/anti-ad-easylist.txt.md5 @@ -0,0 +1 @@ +94917f2a1dafe7288a6e3a2a138dcc32 \ No newline at end of file diff --git a/scripts/tools/easylist-extend.php b/scripts/tools/easylist-extend.php index d5e6b4b7..8dcb109f 100644 --- a/scripts/tools/easylist-extend.php +++ b/scripts/tools/easylist-extend.php @@ -378,4 +378,5 @@ if(($insert_pos > 0) && (fseek($new_fp, $insert_pos) === 0)){ fclose($src_fp); fclose($new_fp); rename($src_file . '.txt', $src_file); +file_put_contents($src_file . '.md5', md5_file($src_file)); echo 'Time cost:', microtime(true) - START_TIME, "s, at ", date('m-d H:i:s'), "\n";