Takes 100 random tracks from a source playlist, shuffles them, and adds them to a new destination playlist.
Fixes two annoying things about the Spotify/Alexa integration:
- Spotify will only shuffle the first 100 songs of a playlist.
- Alexa does not know how to shuffle songs when played from a routine.
First, create a Spotify application.
Next, export the following environment variables:
export SPOTIPY_CLIENT_ID='<Your Spotify application client ID>'
export SPOTIPY_CLIENT_SECRET='<Your Spotify application client secret>'
export SPOTIPY_REDIRECT_URI='http://localhost/callback/'
Finally, run python main.py
. Every morning at 7:00 am you'll have a fresh playlist called "Working Today." This playlist will contain 100 songs, all of which are pre-shuffled.