Skip to content

Build Spotify playlists from songs playing on Digitally Imported

Notifications You must be signed in to change notification settings

danielthor/di_spotify

Repository files navigation

README

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.

Quick and dirty setup

  1. cp spotify_config.yml.example spotify_config.yml
  2. Download your Spotify API key as described in Hallon gem docs
  3. Edit spotify_config.yml, find an incomplete list of di_channel_id in di_channels.yml
  4. Edit di_spotify.rm and change playlist_uri variable to your own playlist URL
  5. Run using bundle exec ruby di_spotify.rb

Todo / Ideas

  • 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

License

MIT

About

Build Spotify playlists from songs playing on Digitally Imported

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages