Skip to content

Commit

Permalink
Update update_lists.py
Browse files Browse the repository at this point in the history
Signed-off-by: Isaac Hernán <[email protected]>
  • Loading branch information
Isaaker authored Jul 4, 2024
1 parent cebd960 commit f2a6f07
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripts/update_lists.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
# Get the domains to block
time.sleep(1)
print ("Obtaining the domains to block...")
with open("./Lists/BLACKLIST.txt", "r") as master_blocklist:
with open("/home/runner/work/Spotify-AdsList/Spotify-AdsList/Developer/Lists/BLACKLIST.txt", "r") as master_blocklist:
block_domains = master_blocklist.readlines()

# Generate the new adblock files
Expand Down Expand Up @@ -45,7 +45,7 @@
"""

with open("./Lists/adguard.txt", "w") as adguard:
with open("/home/runner/work/Spotify-AdsList/Spotify-AdsList/Developer/Lists/adguard.txt", "w") as adguard:
adguard.write(header)
for domain in block_domains:
adguard.write(f"||{domain.rstrip()}^\n")
Expand All @@ -68,7 +68,7 @@
"""

with open("./Lists/pi-hole.txt", "w") as pihole:
with open("/home/runner/work/Spotify-AdsList/Spotify-AdsList/Developer/Lists/pi-hole.txt", "w") as pihole:
pihole.write(header)
for domain in block_domains:
pihole.write(domain)
Expand All @@ -91,7 +91,7 @@
"""

with open("./Lists/standard_list.txt", "w") as standard_list:
with open("/home/runner/work/Spotify-AdsList/Spotify-AdsList/Developer/Lists/standard_list.txt", "w") as standard_list:
standard_list.write(header)
for domain in block_domains:
standard_list.write(f"0.0.0.0 {domain}")
Expand All @@ -114,7 +114,7 @@
"""

with open("./Lists/dnsmasq.txt", "w") as dnsmasq:
with open("/home/runner/work/Spotify-AdsList/Spotify-AdsList/Developer/Lists/dnsmasq.txt", "w") as dnsmasq:
dnsmasq.write(header)
for domain in block_domains:
dnsmasq.write(f"server=/{domain.rstrip()}/\n")
Expand Down

0 comments on commit f2a6f07

Please sign in to comment.