feat(cli): detect .spotdl sync files for playlist resync - #2
Merged
Conversation
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
.mdl.jsonmanifest is found in the target directory, mdl now looks for an existing.spotdlsync file (written by spotdl) and extracts the playlist URL/title from it..mdl.json-based resync) — mdl still fetches fresh metadata and downloads as normal..mdl.jsonmanifest; the.spotdlfile is only ever read, never written or modified.Test plan
bun test srcinpackages/cli(74 pass, includes newspotdl.test.ts)bun run typecheckinpackages/clibiome checkvia lefthook pre-commit