Skip to content

Instantly share code, notes, and snippets.

@Sledge
Sledge / bl-spotify.rb
Created March 29, 2011 14:15
Small Ruby script to skip unwanted tracks in spotify (radio-mode) on linux/ubuntu (native mode)
#!/usr/bin/env ruby
# This is my current blacklist when playing spotify in radio mode with "heavy metal".
blacklist = ['Nickelback', 'Scorpions', 'Watain', 'Mayhem', 'Guns N\' Roses']
# gem install ruby-dbus
require "dbus"
session_bus = DBus::SessionBus.instance