Populate Spotify playlists with all tracks from albums played on SomaFM channels by doing the following:
- for a set of configured SomaFM channels...
- create a spotify playlist for that channel if it doesn't exist
- read recenttly played album and artist from somafm website
- lookup album/artist in mapping.json to see if it has been processed before, if it has been processed its entry in mappings.json will be the matching spotify album id or null if there is no matching album
- if the album/artist has been process before then stop and do the next album/arist or channel
- get list of tracks already on spotify playlist and remove any duplicates (in case mappings.json is out of sync)
- add tracks to beginning of spotify playlist
source ./env/bin/activate source set-env python3 somafy.py
python3 -m venv ./env pip install requirements.txt