mirror of
https://github.com/zarzet/SpotiFLAC-Mobile.git
synced 2026-05-19 22:54:43 +02:00
554fe08fcd
- Use -map_metadata 0 instead of -map_metadata -1 so FFmpeg copies and auto-remaps source tags (M4A/ID3 → Vorbis comments) as a base - Add _normalizeToVorbisComments() to filter technical fields (BIT_DEPTH, SAMPLE_RATE, DURATION) and normalize key variations to standard Vorbis comment names before applying overrides - Switch cover art embedding from METADATA_BLOCK_PICTURE base64 (unreliable on Android due to command-line length limits) to -i cover -map 1:v -disposition attached_pic (same proven approach as embedMetadata and _convertToAlac) - Drop zero-value track/disc numbers from override map to prevent clobbering source metadata with '0' from Go readFileMetadata