mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-07-26 05:51:18 +02:00
364b2aa138
When a provider delivers a lossy/unknown stream, the native finalizer preserved the container but kept the requested .flac name, so every metadata/ReplayGain write treated the file as FLAC and failed with "failed to write FLAC metadata: failed to parse FLAC file: fLaC head incorrect" — on the first download, on every retry (the file is never deleted from public storage), on every manual edit attempt, and the history backfill re-probed the same file on every app launch forever. - Finalizer now renames a preserved lossy/unknown container away from its .flac name to match the real content (aac/MP4 -> .m4a, mp3, opus), mirroring the Dart pipeline, so the correct tag writer is picked - EditFileMetadata sniffs MP4 content before taking the .flac branch and reports what is actually wrong (rename to .m4a) instead of the cryptic parse error - The history audio-metadata backfill remembers paths whose probe failed permanently (unparseable content) and stops reselecting them on every launch; transient failures (missing file, unmounted volume) still retry