Skip to content

Commit

Permalink
Fixing some bugs and working on new features
Browse files Browse the repository at this point in the history
Working on #46

Removed star.c10r.facebook.com

Working on #47

Whitelisted cast.scdn.co
Removed gew-dealer.spotify.com
Removed gew-dealer-ssl.spotify.com

Developing new script to mix the actual Spotify blocklist with a default ads blocklist to be more effective
  • Loading branch information
Isaaker committed Dec 6, 2024
1 parent 3a554fc commit 0eccc64
Show file tree
Hide file tree
Showing 5 changed files with 63 additions and 15 deletions.
4 changes: 0 additions & 4 deletions Lists/BLACKLIST.txt
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,6 @@ mmv.admob.com
clk1.vip.sc9.admob.com
ads-akp.spotify.com
svastx.moatads.com
star.c10r.facebook.com
adserver.adtechus.com
status.intercom.io
7c.video-ak.cdn.spotify.com
Expand Down Expand Up @@ -217,7 +216,6 @@ intercom.io
api.safedk.com
docs.spotify.com
daryl.ash.spotify.com
o22381.ingest.sentry.io
52.audio-ak.cdn.spotify.com
comscorenetworks.net
sap-testing.spotify.com
Expand Down Expand Up @@ -557,7 +555,6 @@ ash1-msproxy-a4.ash1.spotify.com
7f.video-ak.cdn.spotify.com
search.spotxchange.com
45.audio-ak.cdn.spotify.com
gew-dealer-ssl.spotify.com
click.api.cp.tune.com
ws-partner.spotify.com
line-in.spotify.com
Expand Down Expand Up @@ -1011,7 +1008,6 @@ dd.video-ak.cdn.spotify.com
w.intercom.io
partners.spotify.com
demo-builder.spotify.com
gew-dealer.spotify.com
ab.tune.com
c5.audio-ak.cdn.spotify.com
tic1.vip.sc9.admob.com
Expand Down
8 changes: 5 additions & 3 deletions Lists/WHITELIST.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@

Created by: Isaaker

Revised: 31/8/24
Revised: 6/12/24

Version: WHITELIST

Number of domains: 7
Number of domains: 8

Read more: https://github.com/Isaaker/Spotify-AdsList

Expand All @@ -26,6 +26,7 @@ License: https://github.com/Isaaker/Spotify-AdsList/blob/main/LICENSE.txt
| api.spotify.com | Spotify main API |
| audio4-fa.scdn.co | Some platforms need this domain unlocked to get audio tracks from Spotify servers | Songs may not play on certain platforms |
| seektables.scdn.co | Nest Mini devices can't properly cast towards using the Spotify mobile app |
| cast.scdn.co | Server for casting to google devices such as Google Nest | Unable to use Google Chromecast or Nest with Spotify |

## Plain List

Expand All @@ -36,4 +37,5 @@ License: https://github.com/Isaaker/Spotify-AdsList/blob/main/LICENSE.txt
- partners.wg.spotify.com
- api.spotify.com
- audio4-fa.scdn.co
- seektables.scdn.co
- seektables.scdn.co
- cast.scdn.co
19 changes: 11 additions & 8 deletions docs/docs_whitelist.md
Original file line number Diff line number Diff line change
@@ -1,17 +1,18 @@
# Spotify Ads Whitelist

!!! info
Created by: Isaaker
Created by: Isaaker

Revised: 31/8/24
Revised: 6/12/24

Version: WHITELIST
Version: WHITELIST

Number of domains: 7
Number of domains: 8

Read more: https://github.com/Isaaker/Spotify-AdsList

!!! warning
This list is not formatted in any special way and therefore cannot be downloaded and used as an input file, please add the domains manually.
License: https://github.com/Isaaker/Spotify-AdsList/blob/main/LICENSE.txt

**WARNING: This list is not formatted in any special way and therefore cannot be downloaded and used as an input file, please add the domains manually.**

## Detailed list

Expand All @@ -25,6 +26,7 @@
| api.spotify.com | Spotify main API |
| audio4-fa.scdn.co | Some platforms need this domain unlocked to get audio tracks from Spotify servers | Songs may not play on certain platforms |
| seektables.scdn.co | Nest Mini devices can't properly cast towards using the Spotify mobile app |
| cast.scdn.co | Server for casting to google devices such as Google Nest | Unable to use Google Chromecast or Nest with Spotify |

## Plain List

Expand All @@ -35,4 +37,5 @@
- partners.wg.spotify.com
- api.spotify.com
- audio4-fa.scdn.co
- seektables.scdn.co
- seektables.scdn.co
- cast.scdn.co
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -5,3 +5,4 @@ mkdocs-redirects>=1.2.0
mkdocs-static-i18n>=0.56
mkdocs-simple-hooks>=0.1.5
mkdocs-rss-plugin>=1.7.0
requests>=2.32.3
46 changes: 46 additions & 0 deletions scripts/add_default-ads-blocklist.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
# This script adds a default blocklist to the actual one with generic ad domains


### DOES NOT WORK - STILL UNDER DEVELOPMENT ###


print ("""
_____ __ _ ____ ___ __ __ _ __
/ ___/____ ____ / /_(_) __/_ __ / | ____/ /____ / / (_)____/ /_
\__ \/ __ \/ __ \/ __/ / /_/ / / / / /| |/ __ / ___/ / / / / ___/ __/
___/ / /_/ / /_/ / /_/ / __/ /_/ / / ___ / /_/ (__ ) / /___/ (__ ) /_
/____/ .___/\____/\__/_/_/ \__, / /_/ |_\__,_/____/ /_____/_/____/\__/
/_/ /____/
""")
print ("License: https://github.com/Isaaker/Spotify-AdsList/blob/main/LICENSE.txt")

import os
import requests
workspace = os.environ.get('GITHUB_WORKSPACE')
branch = os.environ.get('BRANCH_NAME')
file = f"{workspace}/{branch}/Lists/BLACKLIST-mixed.txt"
blocklist = f"{workspace}/{branch}/Lists/BLACKLIST.txt"
default_blocklist = f"{workspace}/{branch}/Lists/default_ad_blocklist.txt"

# Download ads default list from The Blocklist Project

print ("Downloading default blocklist...")
default_blocklist_url = "https://blocklistproject.github.io/Lists/alt-version/ads-nl.txt"
response = requests.get(default_blocklist_url)

if response.status_code == 200:
# Abrir un archivo en modo de escritura binaria
with open(default_blocklist, 'wb') as default_blocklist_write:
default_blocklist_write.write(response.content)
print("Sucesfully downloaded")
else:
print(f"Error downloading file")
exit(1)

with open(file, 'wb') as file_write:
with open(blocklist, "r") as blocklist_1:
master_blocklist = blocklist_1.readlines()
with open(blocklist, "r") as blocklist_1:
master_blocklist = blocklist_1.readlines()

print ("Duplicated lines deleted sucesfully")

0 comments on commit 0eccc64

Please sign in to comment.