Aug. 30, 2018

Program to blacklist artists on Spotify

Spotify seems not to allow to blacklist artists or songs by design (at least they reject the feature request in their forum), which means that these songs of these artists are added to radio streams even when you disliked them before.

But if you are using Mopidy (e.g. to use Spotify on a raspberry pi or just to have a nice web interface), you can use its MPD interface to remove blacklisted artists from the playlist as soon as they are added using this short python program:

#!/usr/bin/env python
# Licence: This code snippet is public domain

from mpd import MPDClient import time

blacklist = ["artist1", "artist2", "artist3"]

client = MPDClient() client.connect("localhost", 6600)

while True: time.sleep(10) for item in client.playlistinfo(): if item['artist'] in blacklist: client.deleteid(item['id'])

The program checks every 10 seconds if a song from a blacklisted artist in the playlist and then deletes it.

Kategorien: OpenSource Kurz bemerkt Software
Tagged: Spotify Songs music MPD Mopidy Blacklist

0 Kommentare

April 9, 2015

Links (112)

Kategorien: Links
Tagged: Monsters USB Karten Maps Internet Pratchett Terry Wahrheit Lügen Sysadmin container NSA Domains music Musik Montizing Children Schlüsselkinder Hintertüren Verschlüsslung Recht am eigenen Bild öffentlicher Raum Nichts zu verbergen Turingmaschine BGP Browser Datenschutz Feministen Hass User drunk UX testing Mac Plus Martin Luther Jurassic Park Lego Rhetorik Beziehungsstatus Beziehungen vergewaltigt hidden messages deconstructing WLAN ToS AGB licenses

0 Kommentare

März 3, 2013

Links (86)

Kategorien: Links
Tagged: Festplatte Harddisk Recovery Sector Bad Sector Monospace Fonts Aufschrei zweifeln Things fitting perfectly Strafverfolgung Bilder Presse herausgeben coding music Starwars Traceroute Busenfreund Club-Mate WTF Evolution MATE

0 Kommentare

Sept. 3, 2008

Tipp: Now Playing with MPD

a convenient way to get "now playing" information from MPD can be achieved by this little script:


  • xclip
  • mpc (the official mpd commandline client)
  • notify-send (from libnotify-bin)
mpc|head -n1|xclip
notify-send -t 2500 "now playing" "`xclip -o`"
The Script copies the current "artist - track" to the clipboard and displays it as passive popup:

Kategorien: Software
Tagged: Tipps english now playing music MPD mpc notifiy-send Script

0 Kommentare