A local database for Spotify playlists and Liked Songs.
- The problem
- When I wanted to clean up my Spotify library, I had to open playlists one by one to find where I’d saved a track. I wanted one place to see which playlists shared songs and tell whether I’d removed the last copy or just one duplicate.
- My contribution
- I built a catalog in Python and SQLite that can resume interrupted Spotify captures. I added an offline browser explorer where I can look up every saved placement of a track and compare playlists by duration or release date.
- The result
- In the fictional offline demo, “Moonrise” by Demo Artist appears twice in Chill and once in Festival. Comparing two captures shows that Chill lost one copy and kept the other. The demo runs without a Spotify account and includes CSV export and a SQLite backup restore.
Data model and newer workflows
- Store every playlist position separately from the track ID so duplicate entries stay visible.
- Record failed reads as unknown so snapshot comparisons don’t mistake them for removals.
- Keep capture separate from querying so saved snapshots can be explored offline.
A separate MusicBrainz lookup step caches matched recording genre tags for later offline use. Personal ratings are keyed to the exact catalog identity and saved to SQLite by importing an exported ratings file. Reviewed local audio paths and available file tags can also appear in comparisons.