This is a proof of concept for an idea I had -- check what's playing on di.fm and build a Spotify playlist from the songs. Work in progress.
cp spotify_config.yml.example spotify_config.yml
- Download your Spotify API key as described in Hallon gem docs
- Edit
spotify_config.yml
, find an incomplete list ofdi_channel_id
in di_channels.yml - Edit
di_spotify.rm
and changeplaylist_uri
variable to your own playlist URL - Run using
bundle exec ruby di_spotify.rb
- DI.fm channel list yml with name and ids
- Generic config with Spotify and DI.fm settings
- Continuously search for new playing tracks and update playlist
- Sleep search loop for at least the length of the currently playing track on DI.dm
- Figure out some clever way when to look for new song and do it more efficiently (ie when the current song finished)
- Initialize a new playlist if --playlist option is passed