Skip to content

Commit 7713742

Browse files
test again
1 parent 9cdf211 commit 7713742

2 files changed

Lines changed: 3 additions & 40 deletions

File tree

.github/workflows/update.yml

Lines changed: 2 additions & 40 deletions
Original file line numberDiff line numberDiff line change
@@ -13,56 +13,18 @@ jobs:
1313
uses: actions/setup-python@v2
1414
with:
1515
python-version: 3.8 #install the python needed
16-
- name: execute py script # run the run.py to get the latest data
16+
- name: execute sh script
1717
run: |
1818
shopt -s globstar
1919
git clone https://github.com/ProgramComputer/hostsblock.git
2020
cd **/hostsblock
2121
make
2222
cd -
23-
declare -A raws
24-
raws[ABPindo+EasyList]=https://easylist-downloads.adblockplus.org/abpindo+easylist.txt
25-
raws[ABPVNList+EasyList]=https://easylist-downloads.adblockplus.org/abpvn+easylist.txt
26-
raws[Bulgarianlist+EasyList]=https://easylist-downloads.adblockplus.org/bulgarian_list+easylist.txt
27-
raws[NordicFilters+EasyList]=https://easylist-downloads.adblockplus.org/dandelion_sprouts_nordic_filters+easylist.txt
28-
raws[EasyListChina+EasyList]=https://easylist-downloads.adblockplus.org/easylistchina+easylist.txt
29-
raws[EasyListCzechandSlovak+EasyList]=https://easylist-downloads.adblockplus.org/easylistczechslovak+easylist.txt
30-
raws[EasyListDutch+EasyList]=https://easylist-downloads.adblockplus.org/easylistdutch+easylist.txt
31-
raws[EasyListGermany+EasyList]=https://easylist-downloads.adblockplus.org/easylistgermany+easylist.txt
32-
raws[EasyListHebrew+EasyList]=https://easylist-downloads.adblockplus.org/israellist+easylist.txt
33-
raws[EasyListItaly+EasyList]=https://easylist-downloads.adblockplus.org/easylistitaly+easylist.txt
34-
raws[EasyListLithuania+EasyList]=https://easylist-downloads.adblockplus.org/easylistlithuania+easylist.txt
35-
raws[EasyListPolish+EasyList]=https://easylist-downloads.adblockplus.org/easylistpolish+easylist.txt
36-
raws[EasyListPortuguese+EasyList]=https://easylist-downloads.adblockplus.org/easylistportuguese+easylist.txt
37-
raws[EasyListSpanish+EasyList]=https://easylist-downloads.adblockplus.org/easylistspanish+easylist.txt
38-
raws[IndianList+EasyList]=https://easylist-downloads.adblockplus.org/indianlist+easylist.txt
39-
raws[KoreanList+EasyList]=https://easylist-downloads.adblockplus.org/koreanlist+easylist.txt
40-
raws[LatvianList+EasyList]=https://easylist-downloads.adblockplus.org/latvianlist+easylist.txt
41-
raws[ListeAR+ListeFR+EasyList]=https://easylist-downloads.adblockplus.org/liste_ar+liste_fr+easylist.txt
42-
raws[ListeFR+EasyList]=https://easylist-downloads.adblockplus.org/liste_fr+easylist.txt
43-
raws[ROList+EasyList]=https://easylist-downloads.adblockplus.org/rolist+easylist.txt
44-
raws[RuAdList+EasyList]=https://easylist-downloads.adblockplus.org/ruadlist+easylist.txt
45-
raws[EasyList_noadult]=https://easylist-downloads.adblockplus.org/easylist_noadult.txt
46-
raws[antiadblockfilters]=https://easylist-downloads.adblockplus.org/antiadblockfilters.txt
47-
raws[easylist_noelemhide]=https://easylist-downloads.adblockplus.org/easylist_noelemhide.txt
48-
raws[EasyList]=https://easylist-downloads.adblockplus.org/easylist.txt
49-
curl -s ${raws[EasyList]} | ./hostsblock/hostsblock - > hosts
50-
unset raws[EasyList]
51-
for raw in "${!raws[@]}"; do
52-
mkdir -p $raw
53-
echo $raw
54-
echo ${raws[$raw]}
55-
curl -s ${raws[$raw]} | ./hostsblock/hostsblock - > ./$raw/hosts
56-
done
57-
mkdir -p EasyListAllCombined
58-
sort hosts **/hosts | uniq > ./EasyListAllCombined/hosts
5923
git clone https://github.com/easylist/easylist.git
6024
subdirectories=("./easylist/easylist" "./easylist/easylist_adult" "./easylist/easylist_cookie" "./easylist/easyprivacy" "./easylist/fanboy-addon")
6125
62-
# Iterate through each subdirectory
6326
for dir in "${subdirectories[@]}"; do
64-
${raws[$raw]} | ./hostsblock/hostsblock - > ./$raw/hosts
65-
find "$dir" -type f -exec sh -c 'mkdir -p $0;echo $0;./$0 | ./hostsblock/hostsblock - > ./$raw/hosts"' {} \;
27+
find "$dir" -type f -exec sh -c 'mkdir -p $0;echo $0;./$0 | ./hostsblock/hostsblock - > ./EasyListMirror/$dir/$0/hosts"' {} \;
6628
done
6729
sudo rm -rf hostsblock
6830
sudo rm -rf easylist

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55

66
Also has supplemental hosts file in here https://adblockplus.org/subscriptions, https://github.com/easylist, and https://gitlab.com/eyeo/adblockplus/adblockpluscore/-/blob/next/data/subscriptions.json .
77

8+
EasyListMirror contains a mirror of hosts from https://github.com/easylist/easylist.
89

910
| type | languages | title | url | homepage |
1011
| ---- | ----------------------------------- | ------------------------------------------ | ---------------------------------------------------------------------------------------- | -------------------------------------------------------- |

0 commit comments

Comments
 (0)