abba23/spotify-adblock

Ads playing

Closed this issue · 2 comments

Relevant log (?)

2024/02/17 21:00:47:5152] ERR: getaddrinfo failed: -4
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:47:6156] ERR: getaddrinfo failed: -4
[+] cef_urlrequest_create:	 https://pubads.g.doubleclick.net/pagead/interaction/?ai=Bhl3nbM7QZYDPMOepid4Px7Sc8Afi8afTRgAAABABILyu-R44AViditrngwRg5arpg-QOsgEPd3d3LnNwb3RpZnkuY29tugEHMngyX3htbMgBBdoBGGh0dHBzOi8vd3d3LnNwb3RpZnkuY29tL6kC7BSyZ3IUsj7AAgLgAgDqAhAvNjQ2NTA1Mi9kZXNrdG9w-AKE0h6QA5oImAPQBagDAdAEkE7gBAHSBQgQx9f2iBgwAZAGAaAGI6gHuL6xAqgHmgaoB_PRG6gHltgbqAeqm7ECqAeDrbECqAfgvbECqAf_nrECqAffn7EC2AcB4AcB0ggqCIxhEAEYHzIDisIBOg7AwICAgIAIgMCAgICgCEi9_cE6WJDfrI7WsoQD2AgCgAoFmAsBqg0CSU7QFQH4FgGAFwE&sigh=wyv3tT_moQQ&label=adpause&ad_mt=%5BAD_MT%5D
[+] cef_urlrequest_create:	 https://adeventtrackermonitoring.spotify.com/v2/t?p=AABU7NfhVyB3h4vnLH4O0zcXP-vrS8XqrEpGzqsDy6x-BpWuMlSVixqc-nxxkZ3zOxAeeYMEEBxsdlpvQRe9wlYon889tN6_J3vfBIv1A_0jWWSX1AwkxIMoSBn42gUBEmwuqcfcfbP5H0QciRntN9IsCiBVq2xUFml_sNAjUcH7udTjqVVF9Ck4WANSvIACnyZZKcStAP6Mo-bawDdxYQSHvKFmPV1Tv_a-qtFNKZDGx3X8XnnlVhOp5JMqMrmA5BPF3jXMo9zG48KD8SlM3In5toUmlDmvq8vMONSKet0ZIdp-Dg5oiIAj9hlrrT2QCGze3_LAOSlh8nOBSWxIu7sfAH2MMNL0mCNy3avdswHazf81y5SVvs2tjyPqg8CZ2Xl5fnHC1Wq2oeUUzgqvQwl3xFTv-FgY18gc9tj3T2XffyZxvm9_7McZ_B9wWWzcwRJZ_-BhRUaPVUyPN5COPceQcIhwI4r4g85F_uQPBhJwvf6wQYVbeHzMqBliPJDF4MDe66e9vLRbxXZ6p3wUHpVX_WxEX5-c
[+] cef_urlrequest_create:	 https://adeventtrackermonitoring.spotify.com/monitoring?pload=AAChVxLSTmuCKN9WlHul1YzNFQSXCNJEKNQUuVVzc3kGZE67WnOYqxLVWhbg6V1U-zH-uw6QL57GhSQJqanvg9X45CFmjFV8QweICS41s6VElEvFzndFSwDsc4QO-zpNdhexy0C6oT8u8leFHNn1LK8fnpprD5VgzjyHGb3hGkldfYEFZ-TiyD6pNjdE2Z91Vgo8hMPrA_-x4DEBRngwNnIMeSRXf0JNX9neTupq_zVdN6P4N7BiHopl__Ij51k52438umpm7rNnR11CJ6Usgp_naSO-2jGaL8epE6lSxmZ8579UlGOTmyMHNQp5XHZbCccJPmLIPApy-x6shEVgytVNBcBoVqN3xZW-ty4iIdAw6ZzbtG8ZildHpWD9pLTJprCxQkdU4BKCZ49rfMKz9Pfp7Ds4snpz-egMLk4yjOZHwvaXrg34xEr736-l&event=monitoring
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:48:2170] ERR: getaddrinfo failed: -4
[+] cef_urlrequest_create:	 https://apresolve.spotify.com/?time=1708183848&type=accesspoint&type=dealer
[-] getaddrinfo:		 dealer.spotify.com
[2024/02/17 21:00:48:3676] ERR: getaddrinfo failed: -4
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:50:2248] ERR: getaddrinfo failed: -4
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:50:3252] ERR: getaddrinfo failed: -4
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:50:9265] ERR: getaddrinfo failed: -4
[+] cef_urlrequest_create:	 https://apresolve.spotify.com/?time=1708183850&type=accesspoint&type=dealer
[+] cef_urlrequest_create:	 https://gae2-spclient.spotify.com/played-state/v1/items?fromTimestamp=1700218507182
[+] cef_urlrequest_create:	 https://spclient.wg.spotify.com/ad-logic/prefetch
[-] getaddrinfo:		 gae2-dealer.spotify.com
[2024/02/17 21:00:51:0772] ERR: getaddrinfo failed: -4

Screenshot_2024-02-17_21-00-29

any advice ?

Looks like the configuration file (usually at /etc/spotify-adblock/config.toml) might not have been found. There should be an error message somewhere at the beginning of the log in that case.

In any case you should check if the configuration file exists and isn't empty or has been modified in some other way.

Yes, thank you very much -- I will admit I hadnt read the readme fully and I was in a hurry to do a minimal install. I put the config.toml in ~/.config/spotify-adblock/config.toml and the errors stopped popping thanks !

The following is a minimal working system

#!/bin/bash

if ! command -v wget &> /dev/null; then
    echo "wget is not installed. Please install wget to continue."
    exit 1
fi

SPOTIFY_DEB_URL="http://repository.spotify.com/pool/non-free/s/spotify-client/spotify-client_1.2.26.1187.g36b715a1_amd64.deb"

DOWNLOAD_DIR="/home/$USER/Desktop/spotify-temp"

mkdir -p "$DOWNLOAD_DIR"

wget -O "$DOWNLOAD_DIR/spotify.deb" "$SPOTIFY_DEB_URL"

DEB_FILE="/home/$USER/Desktop/spotify-temp/spotify.deb"

dpkg-deb -x "$DEB_FILE" "$DOWNLOAD_DIR"

mv "$DOWNLOAD_DIR/usr/share/spotify" "/home/$USER/Desktop/"

wget -P /home/$USER/Desktop/spotify https://github.com/abba23/spotify-adblock/releases/download/v1.0.3/spotify-adblock.so

mkdir -P "$HOME/.config/spotify-adblock"

wget -P "$HOME/.config/spotify-adblock" https://raw.githubusercontent.com/abba23/spotify-adblock/v1.0.3/config.toml

#rm -r "$DOWNLOAD_DIR"

LD_PRELOAD="$HOME/Desktop/spotify/spotify-adblock.so" "$HOME/Desktop/spotify/spotify" %U