Prepare Spotify playlist from songs played on Internet radio channels.
JavaScript
Permalink
Failed to load latest commit information.
src Always write updates to stdout for piping. Oct 4, 2015
.gitignore Ignore environment settings. Jul 8, 2015
LICENSE Initial commit Jul 7, 2015
README.md Update README.md Aug 16, 2015
package.json Removing trademarks. #2 Aug 16, 2015

README.md

songs-to-spotify

Prepare Spotify playlist from songs played on Internet radio.

Running

  1. Install dependencies:

    npm install
    
  2. Run track information dumper on a SHOUTCast source to gather a playlist:

    node src/dumper.js -u http://<shoutcast_server>/played.html -o playlist.txt
    
  3. Set environment variables to authentice with your Spotify account:

    export SPOTIFY_CLIENT_ID=<your_spotify_client_id>
    export SPOTIFY_CLIENT_SECRET=<your_spotify_client_secret>
    export SPOTIFY_REFRESH_TOKEN=<spotify_api_refresh_token>
    
  4. Sync your local playlist with one in your Spotify account:

    node src/syncer.js -p <spotify_playlist_name> -i playlist.txt