Skip to content

FLAC: legacy id3 tags error in flac.save_to write-back #608

@PandorasFox

Description

@PandorasFox

Reproducer

https://gist.github.com/PandorasFox/42a651962129e85b19491af8c0abefeb - uses ffmpeg to write out a short silent FLAC file, prepends id3 tags, reproduces when trying to embed a picture tag and write back

Summary

I have some old Pendulum flacs with id3 tags prepended to them - gross, but technically valid. This produces the following behaviors in lofty:

  • parses fine, but then can't write back; errors with 'Attempted to write a tag to a format that does not support it"'
  • if using remove_id3v2, errors with "File missing fLaC stream marker" - I assume something to do with loading back the file before writing when editing in place

Expected behavior

No response

Assets

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions