Implemented export creation UI

This commit is contained in:
patben8 committed 2026-09-23 15:04:53 +02:00
1 parent 805b95fe5e
commit 7160fa3978
9 files changed
+787 -17

No files matched your search

+5
View File
@@ -504,6 +504,11 @@ export const api = {
getJSON<ExportContents>(`/api/exports/${encodeURIComponent(id)}/contents`),
exportTracks: (id: string) =>
getJSON<Track[]>(`/api/exports/${encodeURIComponent(id)}/tracks`),
// Only the tracks added individually — the "Other" bucket, which becomes its
// own playlist in the exported library. Not a filter on exportTracks: that one
// is everything the export would ship, playlists included and deduped.
exportLooseTracks: (id: string) =>
getJSON<Track[]>(`/api/exports/${encodeURIComponent(id)}/loose`),
exportPlaylistTracks: (id: string, playlistId: string) =>
getJSON<Track[]>(
`/api/exports/${encodeURIComponent(id)}/playlists/${encodeURIComponent(playlistId)}/tracks`,