Skip to content

Add The Current, KEXP, KCRW song of the day to Spotify Playlist

License

Notifications You must be signed in to change notification settings

mindovermiles262/song-of-the-day

Repository files navigation

Song of the Day Podcast Catcher

Automatically add The Current's, KEXP's, and KCRW's song of the day to Spotify playlist

Spotify Playlist can be found here

Use

  • Rename /conf/configure.rb.sample to /conf/configure.rb

  • Add your client ID, Secret, and destination playlist ID inside /conf/configure.rb

  • Start the sinatra server by running ruby app.rb from the root directory

  • Open http://localhost:4567 in your web browser and log in

  • Click on New Songs to add any new songs to your playlist. Information is displayed in the terminal window.

Add historic songs to new playlist

Run ./lib/get-historic-[station].rb to generate list of previous SOTD tracks (list stored in ./data/)

then run ./lib/add-historic-[station].rb to add files from specific station to Spotify playlist or run ./lib/add-historic-all.rb to add files from all three stations. Any songs not found are stored in ./log/historic-[station]-songs-not-found.log

Requirements

  • i18n
  • nokogiri
  • omniauth-spotify
  • sinatra

Development Languages

  • Ruby v2.4

TODO

  1. Add songs to Spotify Playlist
  2. Make daily scraper
  3. Add KEXP, KCRW Daily Updater
  4. Add automatic authentication
  5. add #add-historic-all method
  6. Find and add historic KCRW

Contributing

Please follow a "fork-and-pull" workflow when Contributing

  1. Fork the repo on GitHub
  2. Clone the project to your own machine
  3. Commit changes to your own branch
  4. Push your work back up to your fork
  5. Submit a Pull request so that we can review your changes

Copyright Notice

Copyright 2017 Andy Duss

Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

About

Add The Current, KEXP, KCRW song of the day to Spotify Playlist

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published