Skip to content

fix: prevent metadata corruption for weba and flac files#2868

Open
thumb2086 wants to merge 1 commit intoKRTirtho:devfrom
thumb2086:fix-flac-downloadfile
Open

fix: prevent metadata corruption for weba and flac files#2868
thumb2086 wants to merge 1 commit intoKRTirtho:devfrom
thumb2086:fix-flac-downloadfile

Conversation

@thumb2086
Copy link

  • Skip metadata writing for flac files to prevent file corruption
  • FLAC files have strict header requirements where writing metadata after download can corrupt the sync code and make files unplayable
  • Update download_manager_provider.dart to check for both weba and flac extensions
  • Update server/routes/playback.dart to check for both weba and flac extensions
  • Add explanatory comments documenting why metadata writing is skipped for these formats
  • Refactor extension checking to use variable assignment for clarity

- Skip metadata writing for flac files to prevent file corruption
- FLAC files have strict header requirements where writing metadata after download can corrupt the sync code and make files unplayable
- Update download_manager_provider.dart to check for both weba and flac extensions
- Update server/routes/playback.dart to check for both weba and flac extensions
- Add explanatory comments documenting why metadata writing is skipped for these formats
- Refactor extension checking to use variable assignment for clarity
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