mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-11-22 04:10:55 +01:00
A provider could label a download as FLAC while returning other bytes, and the backend then wrote FLAC tags into them and failed with "fLaC head incorrect" (Mornye-Desktop issue #6), ending the whole download. The download probe now reads the container from the file itself: FLAC, including behind an ID3v2 tag, MP4 or MP3. A FLAC label on MP4 or MP3 bytes yields to the bytes, so the file is published with its real suffix and FLAC in MP4 is still remuxed by the app. Unrecognized bytes behind a FLAC label, such as an error page, fail that provider with a clear message so the next provider can try.