Skip to content

Add a Playlist URI column to track exports - #245

Open
natanael127 wants to merge 1 commit into
watsonbox:masterfrom
natanael127:playlist-uri-column
Open

natanael127 wants to merge 1 commit into
watsonbox:masterfrom
natanael127:playlist-uri-column

Conversation

@natanael127

Copy link
Copy Markdown

Closes #242

Summary

Track exports now include a Playlist URI column. It holds the same value on every line.

  • It's always the last column, after the optional artist, audio feature and album columns, so every existing column keeps its position and older exports stay compatible.
  • Liked Songs isn't a real Spotify playlist, so it gets the synthetic URI the app already gives it (spotify:user:<id>:saved).
  • Saved Albums exports are unchanged: they have one line per album rather than per track.

Changes

  • PlaylistExporter: new TracksCsvFile.addColumn for a column with the same value on every line, used to append the playlist URI after all other data
  • New track.playlist_uri translation in every locale, following each locale's existing wording for "Track URI"
  • README: the export format section now documents the column
  • Tests: the expected headers and records include the new column, plus a new test that checks the URI is filled on every line

Testing

  • pnpm test --run: 293 tests pass
  • node --test scripts/*.test.mjs: pass
  • pnpm lint: no problems
  • pnpm build: succeeds

🤖 Generated with Claude Code

Every line carries the playlist's URI in a new last column, after any
optional artist, audio feature or album columns, so existing columns
keep their positions. Liked Songs gets its synthetic user URI.

Closes watsonbox#242

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Column for playlist URI

1 participant