Skip to content

eyeree/somafy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Populate Spotify playlists with all tracks from albums played on SomaFM channels by doing the following:

  1. for a set of configured SomaFM channels...
  2. create a spotify playlist for that channel if it doesn't exist
  3. read recenttly played album and artist from somafm website
  4. 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
  5. if the album/artist has been process before then stop and do the next album/arist or channel
  6. get list of tracks already on spotify playlist and remove any duplicates (in case mappings.json is out of sync)
  7. add tracks to beginning of spotify playlist

Running

source ./env/bin/activate source set-env python3 somafy.py

Setup

python3 -m venv ./env pip install requirements.txt

About

Populate Spotify playlists with all tracks from albums played on SomaFM channels.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages