A program that will connect to Spotify and read tracks in a playlist of your choice. The program will then connect to your Headphones server and see if you already have that artist and album. If not, will download album and remove track from Spotify playlist. If it cannot, it will place the track on a playlist you designate.
- Broken due to closure of Echonest API link
- No easy way to map Spotify IDs to Musicbrainz IDs.
Open to any suggestions. First real GitHub project for me. Forgive the sloppy code, still learning.
Thanks for reading!
- Requests
- Spotipy
- Pyen
- Spotify developer account
- Echonest developer account
- Works best with Headphones VIP Musicbrainz Mirror
- clone repo
- rename config.ini.example to config.ini and edit
- SPOTIFY
- user
* (Spotify username)
- scope
- (already set, allows SpotToPhones to access your playlists and their data)
- client_id
- (Spotify client id, provided at Spotify developer portal)
- client_secret
- (Spotify client secret, provided at Spotify developer portal)
- redirect_uri
- (Spotify redirect uri, provided at Spotify developer portal)
- (can be localhost:8000 or whatever, it does not have to be visited, only pasted into terminal)
- (Spotify redirect uri, provided at Spotify developer portal)
- wanted_playlist
- (name of playlist which contains tracks desired)
- error_playlist
- (name of playlist where tracks will be moved to on failed attempt to add to Headphones)
- success_playlist
- (name of playlist where tracks will be moved to on successful attempt to add to Headphones)
- scope
- user
* (Spotify username)
- HEADPHONES
- ip
- port
- webroot
- api_key
- ECHONEST
- api_key
- SPOTIFY
- Run
python SpotToPhones.py
- Report bugs :D