Dear all,
Hi...
I've been following the e-mail archives about using libid3tag, like the http://www.mars.org/mailman/public/mad-dev/2002-January/000439.html and all those related threads.
I'm wondering how I should be using it to update/change the information for, say, an mp3 file.
I've been trying to do it using those id3_field_set* functions and then eventaully id3_tag_attachframe and id3_file_update.
I have a brief look in the libid3tag source code and I'm not sure what I should be doing. And also I'm wondering if libid3tag can actually update the the file for me? Or I have to actually write to the write myself?
Thanks a lot.
Pigeon.
On Wednesday, June 19, 2002, at 06:23 PM, Pigeon wrote:
I'm wondering how I should be using it to update/change the information for, say, an mp3 file.
I've been trying to do it using those id3_field_set* functions and then eventaully id3_tag_attachframe and id3_file_update.
I have a brief look in the libid3tag source code and I'm not sure what I should be doing. And also I'm wondering if libid3tag can actually update the the file for me? Or I have to actually write to the write myself?
At the moment id3_file_update() is unfinished, which means you can't use it yet to write your changes back to the file.
You can render the changed tags in memory, but if you want to commit them back to the file you currently have to do this yourself.
-rob
On Wed, Jun 19, 2002 at 06:49:56PM -0700, Rob Leslie wrote:
You can render the changed tags in memory, but if you want to commit them back to the file you currently have to do this yourself.
-rob
Here is a patch for id3_file_update so it saves v1 tags. v2 saving is in there but is not working and is commented out for now. Am I right in thinking that v2 tags simply get prepended to a file?
There is also a new function for adding a tag to a file that doesn't yet have one. It might be better to change the interface so that id3_file_open returns a valid id3_file with no tags in it (but I didn't want to break the existing interface).
cheers, sam