Skip to content

Skip conversion when converted file already exists in source library#6

Merged
pixelate merged 2 commits into
mainfrom
claude/fix-sync-conversion-skip-xISkm
Mar 9, 2026
Merged

Skip conversion when converted file already exists in source library#6
pixelate merged 2 commits into
mainfrom
claude/fix-sync-conversion-skip-xISkm

Conversation

@pixelate
Copy link
Copy Markdown
Owner

@pixelate pixelate commented Mar 8, 2026

When a device requires a different file type (e.g. mp3) and the source
library already contains a file with that extension (e.g. track.mp3 alongside
track.aiff), convert_file would still attempt to transcode the original.

Add a check so that if the source directory already has a file with the
target extension, the conversion is skipped — the existing source file
will be picked up by the sync loop and copied directly instead.

claude added 2 commits March 8, 2026 20:09
When a device requires a different file type (e.g. mp3) and the source
library already contains a file with that extension (e.g. track.mp3 alongside
track.aiff), convert_file would still attempt to transcode the original.

Add a check so that if the source directory already has a file with the
target extension, the conversion is skipped — the existing source file
will be picked up by the sync loop and copied directly instead.

https://claude.ai/code/session_012Aej1UZqDBLaQW2rZ799zo
Follow the same pattern as analyzer_test.rb: require real Audio, UI, and
Scanner files, then use mocha class-level stubs to control behavior rather
than defining fake stub classes inline.

https://claude.ai/code/session_012Aej1UZqDBLaQW2rZ799zo
@pixelate pixelate force-pushed the claude/fix-sync-conversion-skip-xISkm branch from 5e980ca to 76aa9e8 Compare March 9, 2026 07:33
@pixelate pixelate merged commit 9e50165 into main Mar 9, 2026
@pixelate pixelate deleted the claude/fix-sync-conversion-skip-xISkm branch March 9, 2026 07:34
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.

2 participants