ffalt / jamp3

id3 & mp3 library
MIT License
9 stars 2 forks source link

Question about updating id3v2 tags #182

Open jsgrosman opened 4 years ago

jsgrosman commented 4 years ago

I'm not seeing a way to use ID3V24TagBuilder to read in the existing tags from a file. Every time I use it, it wipes out the existing tags. Is there a way to initialize it with a file, and then update or add new tags, and then write back to the file?

If ID3V24TagBuilder is not the recommended way, what is? I'm not seeing any relevant examples in the README

ffalt commented 4 years ago

Hi, yes, ID3V24TagBuilder currently doesn't support updating a tag.

The way right now is to read the tag (not simplifing the result), apply changes to the object model and write as in this example. This is more error-prone and not convenient, since you have to deal with tag ids and the right value formats.

I'm adding this to the TODO list.