Skip to content

feat(cli): detect .spotdl sync files for playlist resync - #2

Merged
labithiotis merged 1 commit into
mainfrom
feat/spotdl-detection
Aug 1, 2026
Merged

feat(cli): detect .spotdl sync files for playlist resync#2
labithiotis merged 1 commit into
mainfrom
feat/spotdl-detection

Conversation

@labithiotis

Copy link
Copy Markdown
Owner

Summary

  • When no .mdl.json manifest is found in the target directory, mdl now looks for an existing .spotdl sync file (written by spotdl) and extracts the playlist URL/title from it.
  • The extracted playlist is fed into the existing resync-confirmation flow (same UX as an .mdl.json-based resync) — mdl still fetches fresh metadata and downloads as normal.
  • mdl continues to write and own its .mdl.json manifest; the .spotdl file is only ever read, never written or modified.

Test plan

  • bun test src in packages/cli (74 pass, includes new spotdl.test.ts)
  • bun run typecheck in packages/cli
  • biome check via lefthook pre-commit

When no .mdl.json manifest exists in the output directory, fall back
to reading an existing spotdl (spotify-downloader) sync file to pull
the playlist URL and title, reusing the same resync-confirmation flow.
mdl still writes its own .mdl.json manifest as usual.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
@labithiotis
labithiotis merged commit f8e5a31 into main Aug 1, 2026
4 checks passed
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.

1 participant