Songs

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
Mobil qrcode zeigen

0 Kommentare

Sept. 1, 2013

Links (97)

Politiker und Wahlkampf:

Software und Programmieren:

Shell:

Windows 8 und das TPM:

Prism:

Kategorien Links
Tagged Datenschutz Wahlen Internetüberwachung Bundesregierung Scheisse Trueeffect Do-Not-Track DNT Tracking GEZ Musik Snooping kids surveillance Kill-Switch Smartphones Laptop Microphone Bestandsdatenauskunft Gesetz Facebook Blade Runner 8 Bit Wahlkampf Merkel Rhetorik CDU SPD Grüne polemisiert Wahlplakate Bundestagswahl PGP Milter Mailfilter Verschlüsslung Browser Scrollbar Sourceforge Adware TrueCrypt Unicode programmieren Shell Keyboard Tastatur HTTPS whiste.im Fuckup SHA3 Eurocrypt linux Torvalds GNU Songs Algebra Unix Sort Bash Fliptable Prompt Pipes Screensaver TPM Windows 8 Trusted Computing TCPA Prism NSA Laura Poitras Snowden BSI Blackberry Meinungsfreiheit PRSM E-Mail MI5 rote Linie Piraten Verbindungsdaten Pickup Neusprech
Mobil qrcode zeigen

0 Kommentare