ported list download code to JS

This commit is contained in:
Viet Huynh
2023-09-17 16:48:34 +07:00
parent 083335278c
commit 245cc2e8cf
7 changed files with 42 additions and 22 deletions
+3 -5
View File
@@ -1,10 +1,8 @@
#!/bin/bash
#
#
# Use the provided lists or add your own.
# There is no limit on the amount of whitelisted domains you can have.
source $(dirname "$0")/lib/helpers.sh
# declare an array of urls
urls=(
https://raw.githubusercontent.com/im-sm/Pi-hole-Torrent-Blocklist/main/all-torrent-trackres.txt
@@ -36,7 +34,7 @@ urls=(
)
# download all files in parallel and append them to whitelist.csv
download_lists $urls 'whitelist.csv'
node download_files.js allowlist.txt ${urls[@]}
# print a message when done
echo "Done. The whitelist.csv file contains merged data from recommended whitelists."
echo "Done. The allowlist.txt file contains merged data from recommended whitelists."