You are not logged in.

#1 2014-03-24 09:04:33

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Blockify - Block Ads on Spotify

Hey guys,

if you don't use Spotify, you should try it. If you do, here's a program that "blocks" the advertisements for you, if you so choose.

https://github.com/mikar/blockify
https://aur.archlinux.org/packages/blockify/
Works with both the native linux and the wine version of Spotify.

What it actually does is just mute the system sound when it detects a commercial in the window title of Spotify.
To use it, just start it up and whenever you hear an ad playing, add it to the list of commercials with:

pkill -USR1 -f python2.*blockify

What works well for me is two aliases to either add the current song or remove the last added song from the list:

alias block="pkill -USR1 -f python2.*blockify"
alias unblock="sed -ie '\$d' ~/.blockify_list"

The GUI:
687474703a2f2f612e706f6d662e73652f647a6e6771672e706e67

Regards

Last edited by demian (2014-05-09 11:54:10)


no place like /home
github

Offline

#2 2014-05-08 19:17:24

demian
Member
From: Frankfurt, Germany
Registered: 2009-05-06
Posts: 709

Re: Blockify - Block Ads on Spotify

Just a quick update:
I had some time to rewrite a lot of blockify and even though i'm sure the code is still quite terrible blockify now includes:
* an improved (GTK-)GUI
* Pulse-support (only muting spotify not all system-sound)
* a DBus-Interface

as well as several fixes and/or QoL-improvements so be sure to pull the newest version if you're among the 5 people using this.

cheers


no place like /home
github

Offline

Board footer

Powered by FluxBB