SecUpwN / Spotify-AdKiller

Your Party with Spotify - without ads!
https://github.com/SecUpwN/Spotify-AdKiller
GNU General Public License v3.0
845 stars 84 forks source link

(branch: dns_block) Bad UTF-8 encoding in X variables leads to songs not correctly recognized #87

Closed apiraino closed 7 years ago

apiraino commented 7 years ago

Hello,

I think I've discovered a subtle bug in the get_state logic introduced in commit 999ce64b5a4a8fe3a509a58128ebc2c36c5d2a27 Not sure if this a bug of the get_state function or in the meanwhile X have changed things.

The issue is twofold:

In my case I also had LC_ALL not set so the X variable _NET_WM_NAME was of type STRING instead of UTF8_STRING. WM_NAME - instead - cannot be fixed (AFAICS). I could verify this querying the Spotify window for the WM_LOCALE_NAME variable that should be en_US.UTF-8

Anyway I'm testing these two fixes in my fork in commit https://github.com/apiraino/Spotify-AdKiller/commit/bac0258f19e672586db8f017cdd5e9f7601cc71d. Seems to work.

OlegSmelov commented 7 years ago

The blocking script is unmaintained in the dns_block branch, use the one in master. It seems to have the exact same fix already applied.

Only the experimental folder is maintained in that branch.