All projects

Spotify Playlist Migrator

Actual migration review screen listing a track mapping, two affected synthetic playlists, duplicate source occurrences, and saved-library membership.
Actual review screen after an interrupted preview was reloaded and resumed in the synthetic browser test. No Spotify account was connected.
The problem
When a song is re-released under a different Spotify track ID, my playlists can still point to the old version. Fixing that by hand means opening each playlist, checking repeated entries, and making sure the replacement is the version I actually wanted.
My contribution
I built a browser tool that takes a reviewed old-to-new track pair and lists every affected playlist before changing it. I added resumable scans and a final check for playlist changes since the preview.
The result
In a browser test with synthetic data, I interrupted a scan and resumed it from saved progress. It reused completed work and found two affected playlists with no unreadable playlists left to check.
  • JavaScript
  • OAuth PKCE
  • IndexedDB
GitHub
Engineering decisions
  • Preserve duplicate placements so a repeated track keeps the same number of entries.
  • Check playlist versions again before applying changes and block confirmation when coverage is incomplete.
  • Add and verify the replacement before removing the old track. If removal fails partway through, both versions can remain.