mirror of
https://github.com/beetbox/beets.git
synced 2026-11-30 21:51:17 -06:00
WAV files containing an MP3 stream (WAVE_FORMAT_MPEGLAYER3, wFormatTag=0x0055) were silently imported with incorrect metadata and format reported as WAVE instead of MP3. When a WAV file fails to open due to FileTypeError, check if it is a MPEGLAYER3 WAV. If it is, use ffmpeg to remux it to a proper MP3 file, removing the WAV container. The original WAV file is deleted after successful remuxing. Adds a regression test and test fixture. Fixes #6455